class
Eagle::Physics3D::Cuboid
- Eagle::Physics3D::Cuboid
- Eagle::Physics3D::Shape
- Reference
- Object
Overview
A box collision shape that rotates with its body.
Defined in:
eagle/physics/physics3d.crConstructors
-
.cube(size : Number) : Cuboid
A cube with sides of size.
-
.new(size : Vec3, offset : Vec3 = Vec3::ZERO)
Creates a box of full size.
Instance Method Summary
-
#half : Vec3
Half the box's size along each axis.
-
#half=(half : Vec3)
Half the box's size along each axis.
-
#inertia_factor : Vec3
Inertia per unit mass.
-
#local_aabb : AABB
Bounds in local space.
-
#size : Vec3
Full size along each axis.
-
#volume : Float32
Volume.