Skip to main content

spawn_fixed_cuboid

Function spawn_fixed_cuboid 

Source
pub fn spawn_fixed_cuboid(
    world: &mut World,
    position: Vec3,
    half_extents: Vec3,
    friction: f32,
)
Expand description

Spawn a fixed cuboid: a floor, a wall, whatever gameplay needs.

ยงPanics

Panics when the world carries no PhysicsWorld.