Module d3

Source

Structs§

ColliderBuilder
ColliderHandle
JointBuilder
Connections use local anchors relative to each body’s authored origin.
OverlapHit
Signed point/ball proximity to one convex collider child.
PhysicsWorld
QueryOptions
Reusable distance and filtering options for casts and direct overlap queries.
QueryReport
Counts returned by caller-buffer casts and direct overlap queries. See PhysicsWorld::spherecast_into and PhysicsWorld::overlap_sphere_into.
RayHit
RigidBody
Rigid body state. Waking requests activation of its contact island on the next step.
RigidBodyBuilder
RigidBodyHandle
RigidBodyPose
Authored body-origin pose in world units, independent of center-of-mass offset. A teleport accepts non-unit 3D rotations when they can be normalized. Its returned pose contains the actual committed rotation (wrapped in 2D). See RigidBody::try_teleport and PhysicsWorld::try_teleport_body for runnable reset and host interpolation recipes.
TeleportOptions
Independent motion-reset choices for a checked teleport. Construction requires an explicit velocity policy. Fields may be edited to retain forces or pending targets; see the dimensional teleport methods.
WorldJointFrame
World-space pivots and hinge axis, sampled against two live body poses.

Enums§

ColliderShapeError
Transactional shape replacement failure. See the dimensional PhysicsWorld::replace_collider_shape method for a runnable editing recipe. Existing PhysicsError variants remain unchanged.
JointPoseMode
Select which rest fields world-space authoring captures. See WorldJointFrame and PhysicsWorld::joint_desc_from_world.
QueryError
Invalid input to a caller-buffer query. Errors leave its buffer unchanged. Validation runs even for empty buffers, empty worlds or a zero layer mask, in the order of these variants (direct overlaps omit direction/endpoint checks). A valid miss returns Ok(QueryReport).
SensorPolicy
Which colliders participate in a query. Layers and the ignored body still apply to every policy. See QueryOptions::sensors for usage.
TeleportError
Checked teleport failure. The entire request is rejected before any edit. The world method checks the handle first, then translation, rotation and revision capacity. Handles must come from the same world; they contain no world identity. See the dimensional PhysicsWorld::try_teleport_body recipe.
VelocityPolicy
Linear and angular velocity handling during a checked teleport. See d2::RigidBody::try_teleport or d3::RigidBody::try_teleport.

Type Aliases§

Angular
RawPhysicsWorld
Rotation
Vector