abstract class Eagle::Physics3D::Shape

Overview

A 3D collision shape in a body's local space: a Sphere or a Cuboid.

Direct Known Subclasses

Defined in:

eagle/physics/physics3d.cr

Instance Method Summary

Instance Method Detail

abstract def inertia_factor : Vec3 #

Diagonal of the inertia tensor per unit mass.


abstract def local_aabb : AABB #

Bounds in the body's local space.


def offset : Vec3 #

Offset from the body's origin.


def offset=(offset : Vec3) #

Offset from the body's origin.


abstract def volume : Float32 #

Volume, used for mass.