Structs§
- Distance
Joint - (b2DistanceJoint)
- Joint
- Map from JointId to joint data in the solver sets. (b2Joint)
- Joint
Edge - A joint edge connects bodies and joints together in a joint graph where each body is a node and each joint is an edge. (b2JointEdge)
- Joint
Sim - The base joint simulation data. (b2JointSim)
- Motor
Joint - (b2MotorJoint)
- Prismatic
Joint - (b2PrismaticJoint)
- Revolute
Joint - (b2RevoluteJoint)
- Weld
Joint - (b2WeldJoint)
- Wheel
Joint - (b2WheelJoint)
Enums§
- Joint
Payload - The per-type joint payload. The C
b2JointSimstores ab2JointType typetag plus a union; the Rust port stores this tagged enum. A filter joint has no simulation data. - Joint
Type - Joint type enumeration. (types.h: b2JointType)
Functions§
- create_
distance_ joint - (b2CreateDistanceJoint)
- create_
filter_ joint - (b2CreateFilterJoint)
- create_
motor_ joint - (b2CreateMotorJoint)
- create_
prismatic_ joint - (b2CreatePrismaticJoint)
- create_
revolute_ joint - (b2CreateRevoluteJoint)
- create_
weld_ joint - (b2CreateWeldJoint)
- create_
wheel_ joint - (b2CreateWheelJoint)
- destroy_
joint - (b2DestroyJoint)
- destroy_
joint_ internal - Destroy a joint: unlink it from both bodies’ joint lists, the island graph, and the solver set or constraint graph that owns its sim, then free the id. (b2DestroyJointInternal — C takes the joint pointer; the Rust port takes the id.)
- draw_
joint - (b2DrawJoint)
- get_
joint_ full_ id - Validate a JointId and return the raw joint index. (b2GetJointFullId — C
returns a pointer; Rust returns the index into
world.joints) - get_
joint_ reaction - Reaction force/torque magnitudes for joint events. Returns (force, torque). (b2GetJointReaction — C returns through out-pointers)
- get_
joint_ sim - Borrow a joint’s sim data mutably: constraint graph color for awake joints, otherwise the owning solver set. (b2GetJointSim)
- get_
joint_ sim_ check_ type - (b2GetJointSimCheckType)
- get_
joint_ sim_ check_ type_ ref - Shared-reference variant of get_joint_sim_check_type.
- get_
joint_ sim_ ref - Shared-reference variant of get_joint_sim for read-only accessors. (The C b2GetJointSim is used for both; Rust needs the split.)
- joint_
get_ angular_ separation - (b2Joint_GetAngularSeparation)
- joint_
get_ body_ a - (b2Joint_GetBodyA)
- joint_
get_ body_ b - (b2Joint_GetBodyB)
- joint_
get_ collide_ connected - (b2Joint_GetCollideConnected)
- joint_
get_ constraint_ force - (b2Joint_GetConstraintForce)
- joint_
get_ constraint_ torque - (b2Joint_GetConstraintTorque)
- joint_
get_ constraint_ tuning - (b2Joint_GetConstraintTuning — C returns through out-pointers)
- joint_
get_ force_ threshold - (b2Joint_GetForceThreshold)
- joint_
get_ linear_ separation - (b2Joint_GetLinearSeparation)
- joint_
get_ local_ frame_ a - (b2Joint_GetLocalFrameA)
- joint_
get_ local_ frame_ b - (b2Joint_GetLocalFrameB)
- joint_
get_ torque_ threshold - (b2Joint_GetTorqueThreshold)
- joint_
get_ type - (b2Joint_GetType)
- joint_
get_ user_ data - (b2Joint_GetUserData)
- joint_
is_ valid - Joint id validity. (b2Joint_IsValid — the world-registry check collapses to the index/generation check in the registry-less port)
- joint_
set_ collide_ connected - (b2Joint_SetCollideConnected)
- joint_
set_ constraint_ tuning - (b2Joint_SetConstraintTuning)
- joint_
set_ force_ threshold - (b2Joint_SetForceThreshold)
- joint_
set_ local_ frame_ a - (b2Joint_SetLocalFrameA)
- joint_
set_ local_ frame_ b - (b2Joint_SetLocalFrameB)
- joint_
set_ torque_ threshold - (b2Joint_SetTorqueThreshold)
- joint_
set_ user_ data - (b2Joint_SetUserData)
- joint_
wake_ bodies - (b2Joint_WakeBodies)
- prepare_
joint - (b2PrepareJoint)
- solve_
joint - (b2SolveJoint)
- warm_
start_ joint - (b2WarmStartJoint)