diff --git a/vendor/box2d/box2d.odin b/vendor/box2d/box2d.odin index 27d3fd177..ad4670110 100644 --- a/vendor/box2d/box2d.odin +++ b/vendor/box2d/box2d.odin @@ -1562,6 +1562,12 @@ foreign lib { // Get the revolute joint spring damping ratio, non-dimensional RevoluteJoint_GetSpringDampingRatio :: proc(jointId: JointId) -> f32 --- + // Set the revolute joint spring target angle, radians + RevoluteJoint_SetTargetAngle :: proc(jointId: JointId, angle: f32) --- + + // Get the revolute joint spring target angle, radians + RevoluteJoint_GetTargetAngle :: proc(jointId: JointId) -> f32 --- + // Get the revolute joint current angle in radians relative to the reference angle // @see b2RevoluteJointDef::referenceAngle RevoluteJoint_GetAngle :: proc(jointId: JointId) -> f32 --- diff --git a/vendor/box2d/types.odin b/vendor/box2d/types.odin index c4ef0cd0c..0c24f3eb0 100644 --- a/vendor/box2d/types.odin +++ b/vendor/box2d/types.odin @@ -727,6 +727,10 @@ RevoluteJointDef :: struct { // This defines the zero angle for the joint limit. referenceAngle: f32, + // The target angle for the joint in radians. The spring-damper will drive + // to this angle. + targetAngle: f32, + // Enable a rotational spring on the revolute hinge axis enableSpring: bool,