Toast Engine
Loading...
Searching...
No Matches
physics::Shape Struct Reference
Collaboration diagram for physics::Shape:

Public Member Functions

auto getLocalCenter () const -> glm::vec3
auto getLocalRotation () const -> glm::quat

Public Attributes

BodyID owner
ShapeType type = ShapeType::sphere
bool enabled = true
PhysicsMaterial material
union { 
   SphereShape   sphere 
   BoxShape   box 
   CapsuleShape   capsule 
   VoxelShape   voxel 
}; 

The documentation for this struct was generated from the following file: