Module physics_transform

Source
Expand description

Manages physics transforms and synchronizes them with Transform.

See PhysicsTransformPlugin.

Structs§

ApplyPosToTransform
Marker component indicating that the position_to_transform system should be applied to this entity.
PhysicsTransformConfig
Configures how physics transforms are managed and synchronized with Transform.
PhysicsTransformHelper
A system parameter for computing up-to-date Position and Rotation components of entities based on their Transforms.
PhysicsTransformPlugin
Manages physics transforms and synchronizes them with Transform.
Position
The global position of a rigid body or a collider.
PreSolveDeltaPosition
The translation accumulated before the XPBD position solve.
PreSolveDeltaRotation
The rotation accumulated before the XPBD position solve.
Rotation
The global physics rotation of a rigid body or a collider.

Enums§

PhysicsTransformSystems
System sets for managing physics transforms.

Functions§

position_to_transform
Copies Position and Rotation changes to Transform. This allows users and the engine to use these components for moving and positioning bodies.
transform_to_position
Copies GlobalTransform changes to Position and Rotation. This allows users to use transforms for moving and positioning bodies and colliders.

Type Aliases§

PhysicsTransformSetDeprecated
A deprecated alias for PhysicsTransformSystems.