pub type Cuboid = Cuboid;Expand description
A cuboid shape.
Aliased Type§
#[repr(C)]pub struct Cuboid {
pub half_extents: Vec2,
}Fields§
§half_extents: Vec2The half-extents of the cuboid along each axis.
Each component represents half the dimension along that axis:
half_extents.x: Half the widthhalf_extents.y: Half the heighthalf_extents.z: Half the depth (3D only)
All components should be positive.