Expand description
Systems responsible for interfacing our Bevy components with the Rapier physics engine.
Functions§
- apply_
collider_ user_ changes - System responsible for applying changes the user made to a collider-related component.
- apply_
initial_ rigid_ body_ impulses - This applies the initial impulse given to a rigid-body when it is created.
- apply_
joint_ user_ changes - System responsible for applying changes the user made to a joint component.
- apply_
rigid_ body_ user_ changes - System responsible for applying changes the user made to a rigid-body-related component.
- apply_
scale - System responsible for applying
GlobalTransformscale and/orColliderScaleto colliders. - init_
colliders - System responsible for creating new Rapier colliders from the related
bevy_rapiercomponents. - init_
joints - System responsible for creating new Rapier joints from the related
bevy_rapiercomponents. - init_
rigid_ bodies - System responsible for creating new Rapier rigid-bodies from the related
bevy_rapiercomponents. - on_
add_ entity_ with_ parent - If an entity is turned into the child of something with a physics context link, the child should become a part of that physics context
- on_
change_ context - Reacts to modifications to
RapierContextEntityLinkto move an entity’s physics data from a context to another. - step_
simulation - System responsible for advancing the physics simulation, and updating the internal state for scene queries.
- sync_
removals - System responsible for removing from Rapier the rigid-bodies/colliders/joints which had
their related
bevy_rapiercomponents removed by the user (through component removal or despawn). - update_
character_ controls - System responsible for applying the character controller translation to the underlying collider.
- update_
colliding_ entities - Adds entity to
CollidingEntitieson starting collision and removes from it when the collision ends. - writeback_
mass_ properties - System responsible for writing updated mass properties back into the
ReadMassPropertiescomponent. - writeback_
rigid_ bodies - System responsible for writing the result of the last simulation step into our
bevy_rapiercomponents and theGlobalTransformcomponent.
Type Aliases§
- Collider
Components - Components related to colliders.
- Rigid
Body Components - Components related to rigid-bodies.
- Rigid
Body Writeback Components - Components that will be updated after a physics step.