Skip to main content

spawn_object

Function spawn_object 

Source
pub fn spawn_object(world: &mut World, object: Object) -> Entity
Expand description

Spawns an Object: mesh, color, and optional physics body in one call.