mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Merge pull request #5835 from ekliot/vendor-box2d-bindings
`vendor:box2d` add `targetAngle` to `RevoluteJoint` struct/procs
This commit is contained in:
Vendored
+6
@@ -1562,6 +1562,12 @@ foreign lib {
|
|||||||
// Get the revolute joint spring damping ratio, non-dimensional
|
// Get the revolute joint spring damping ratio, non-dimensional
|
||||||
RevoluteJoint_GetSpringDampingRatio :: proc(jointId: JointId) -> f32 ---
|
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
|
// Get the revolute joint current angle in radians relative to the reference angle
|
||||||
// @see b2RevoluteJointDef::referenceAngle
|
// @see b2RevoluteJointDef::referenceAngle
|
||||||
RevoluteJoint_GetAngle :: proc(jointId: JointId) -> f32 ---
|
RevoluteJoint_GetAngle :: proc(jointId: JointId) -> f32 ---
|
||||||
|
|||||||
Vendored
+4
@@ -727,6 +727,10 @@ RevoluteJointDef :: struct {
|
|||||||
// This defines the zero angle for the joint limit.
|
// This defines the zero angle for the joint limit.
|
||||||
referenceAngle: f32,
|
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
|
// Enable a rotational spring on the revolute hinge axis
|
||||||
enableSpring: bool,
|
enableSpring: bool,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user