Module integrator

Module integrator 

Source
Expand description

Applies forces and velocities to bodies in order to move them according to the equations of motion using numerical integration.

See IntegratorPlugin.

Structs§

Gravity
A resource for the global gravitational acceleration.
IntegratorPlugin
Integrates Newton’s 2nd law of motion, applying forces and moving entities according to their velocities.
VelocityIntegrationData
Pre-computed data for speeding up velocity integration.
VelocityIntegrationQueryItem
Automatically generated [WorldQuery](:: bevy :: ecs::query::WorldQuery) item type for [VelocityIntegrationQuery], returned when iterating over query results.
VelocityIntegrationQueryReadOnly
Automatically generated [WorldQuery](:: bevy :: ecs::query::WorldQuery) type for a read-only variant of [VelocityIntegrationQuery].
VelocityIntegrationQueryReadOnlyItem
Automatically generated [WorldQuery](:: bevy :: ecs::query::WorldQuery) item type for VelocityIntegrationQueryReadOnly, returned when iterating over query results.

Enums§

IntegrationSystems
System sets for position and velocity integration, applying forces and moving bodies based on velocity.

Functions§

integrate_positions
Integrates the positions of bodies based on their velocities and the time step.
integrate_velocities
Integrates the velocities of bodies by applying velocity increments and damping.
pre_process_velocity_increments
Applies gravity and locked axes to the linear and angular velocity increments of bodies.

Type Aliases§

IntegrationSetDeprecated
A deprecated alias for IntegrationSystems.