Expand description
Systems responsible for interfacing our Bevy components with the Rapier physics engine.
Structs§
- Rapier
Context Link Resolver - Finds the Rapier context of the entities being initialized without a
RapierContextEntityLink.
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_
multibody_ joint_ properties - System responsible for applying the properties of multibody joints and multibodies set by the
user through the
KinematicMultibodyJoint,MultibodyJointDamping,MultibodyJointFriction,MultibodyJointArmature,MultibodyJointSprings,MultibodyJointCouplingsandMultibodySelfContactsDisabledcomponents. - 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. - apply_
soft_ body_ cluster_ changes - System responsible for applying the changes the user made to the cluster components
(
SoftBodyClusterPinned,SoftBodyClusterKinematicTarget,SoftBodyClusterShapeMatchingandSoftBodyClusterMaterial). - apply_
soft_ body_ user_ changes - System responsible for applying changes the user made to a soft-body-related component.
- handle_
soft_ body_ tears - System responsible for spawning the entities of the soft bodies split off by tears, and for
sending the corresponding
SoftBodyTearEventmessages. - 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. - init_
soft_ bodies - System responsible for creating the Rapier soft bodies of new
SoftBodycomponents. - init_
soft_ body_ clusters - System responsible for creating the proxy rigid-bodies of new
SoftBodyClustercomponents. - 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. - reset_
removed_ collider_ components - System responsible for resetting the Rapier collider properties to their default values when
the corresponding
bevy_rapiercomponent is removed by the user. - reset_
removed_ rigid_ body_ components - System responsible for resetting the Rapier rigid-body properties to their default values
when the corresponding
bevy_rapiercomponent is removed by the user. - reset_
removed_ soft_ body_ cluster_ components - System responsible for resetting the clusters whose
SoftBodyClusterPinned,SoftBodyClusterShapeMatchingorSoftBodyClusterMaterialcomponent was removed. - reset_
removed_ soft_ body_ components - System responsible for resetting the Rapier soft-body properties to the values of their
SoftBodybuilder when the corresponding component is removed by the user. - 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). - sync_
soft_ body_ removals - System responsible for removing from Rapier the soft bodies whose
SoftBodycomponent was 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. - update_
pid_ controllers - System responsible for driving rigid-bodies with a
PdControlleror aPidControllertoward their target, by adding the controllers’ corrections to their velocities. - update_
vehicle_ controllers - System responsible for updating the
RayCastVehicleControllers before the simulation step, and writing back their wheels’ state. - writeback_
collider_ mass_ properties - System responsible for writing the mass properties of colliders back into the
ReadColliderMassPropertiescomponent. - writeback_
impulse_ joint_ impulses - System responsible for writing the impulses applied by impulse joints back into the
ImpulseJointImpulsescomponent. - writeback_
mass_ properties - System responsible for writing updated mass properties back into the
ReadMassPropertiescomponent. - writeback_
multibody_ joint_ states - System responsible for writing the state of multibody joints back into the
MultibodyJointStatecomponent. - writeback_
rigid_ bodies - System responsible for writing the result of the last simulation step into our
bevy_rapiercomponents and theGlobalTransformcomponent. - writeback_
soft_ bodies - System responsible for writing the state of the soft bodies and cluster proxies back into
SoftBodyStateandTransformcomponents after a simulation step.
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.
- Soft
Body Collider Components - The collider components of a soft body entity, applied to its surface colliders.
- Soft
Body Components - The components of a soft body entity read when the soft body is created.