Skip to main content

init_physics_world

Function init_physics_world 

Source
pub fn init_physics_world(world: &mut World, config: &PhysicsConfig)
Expand description

Create the physics world and its event plumbing in world, with config applied.

Thread-free callers that drive step_once on their own cadence — deterministic tests, offline rendering — call this to get the world spawn_physics_world_with builds, contact events included.