Skip to main content

Module systems

Module systems 

Source
Expand description

Systems responsible for interfacing our Bevy components with the Rapier physics engine.

Structs§

RapierContextLinkResolver
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, MultibodyJointCouplings and MultibodySelfContactsDisabled components.
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 GlobalTransform scale and/or ColliderScale to colliders.
apply_soft_body_cluster_changes
System responsible for applying the changes the user made to the cluster components (SoftBodyClusterPinned, SoftBodyClusterKinematicTarget, SoftBodyClusterShapeMatching and SoftBodyClusterMaterial).
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 SoftBodyTearEvent messages.
init_colliders
System responsible for creating new Rapier colliders from the related bevy_rapier components.
init_joints
System responsible for creating new Rapier joints from the related bevy_rapier components.
init_rigid_bodies
System responsible for creating new Rapier rigid-bodies from the related bevy_rapier components.
init_soft_bodies
System responsible for creating the Rapier soft bodies of new SoftBody components.
init_soft_body_clusters
System responsible for creating the proxy rigid-bodies of new SoftBodyCluster components.
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 RapierContextEntityLink to 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_rapier component 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_rapier component is removed by the user.
reset_removed_soft_body_cluster_components
System responsible for resetting the clusters whose SoftBodyClusterPinned, SoftBodyClusterShapeMatching or SoftBodyClusterMaterial component was removed.
reset_removed_soft_body_components
System responsible for resetting the Rapier soft-body properties to the values of their SoftBody builder 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_rapier components removed by the user (through component removal or despawn).
sync_soft_body_removals
System responsible for removing from Rapier the soft bodies whose SoftBody component 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 CollidingEntities on starting collision and removes from it when the collision ends.
update_pid_controllers
System responsible for driving rigid-bodies with a PdController or a PidController toward 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 ReadColliderMassProperties component.
writeback_impulse_joint_impulses
System responsible for writing the impulses applied by impulse joints back into the ImpulseJointImpulses component.
writeback_mass_properties
System responsible for writing updated mass properties back into the ReadMassProperties component.
writeback_multibody_joint_states
System responsible for writing the state of multibody joints back into the MultibodyJointState component.
writeback_rigid_bodies
System responsible for writing the result of the last simulation step into our bevy_rapier components and the GlobalTransform component.
writeback_soft_bodies
System responsible for writing the state of the soft bodies and cluster proxies back into SoftBodyState and Transform components after a simulation step.

Type Aliases§

ColliderComponents
Components related to colliders.
RigidBodyComponents
Components related to rigid-bodies.
RigidBodyWritebackComponents
Components that will be updated after a physics step.
SoftBodyColliderComponents
The collider components of a soft body entity, applied to its surface colliders.
SoftBodyComponents
The components of a soft body entity read when the soft body is created.