Skip to main content

spawn_body

Function spawn_body 

Source
pub fn spawn_body(world: &mut World, desc: BodyDesc) -> RigidBodyHandle
Expand description

Spawn a dynamic body with a collision-event collider, returning it.

ยงPanics

Panics when the world carries no PhysicsWorld. The physics world is created before any job runs, so jobs sent through spawn_physics_world_with never see this.