Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
mnd::BoxCollider Class Reference

Axis-aligned box collider; extents are half-sizes. More...

#include <Collider.h>

+ Inheritance diagram for mnd::BoxCollider:
+ Collaboration diagram for mnd::BoxCollider:

Public Member Functions

 BoxCollider (const glm::vec3 &extents)
 
btCollisionShape * GetShape ()
 Underlying Bullet shape (borrowed, do not delete).
 

Protected Attributes

btCollisionShape * m_shape = nullptr
 

Detailed Description

Axis-aligned box collider; extents are half-sizes.

Definition at line 38 of file Collider.h.

Constructor & Destructor Documentation

◆ BoxCollider()

mnd::BoxCollider::BoxCollider ( const glm::vec3 &  extents)

Definition at line 22 of file Collider.cpp.

References mnd::Collider::m_shape.

Member Function Documentation

◆ GetShape()

btCollisionShape * mnd::Collider::GetShape ( )
inherited

Underlying Bullet shape (borrowed, do not delete).

Definition at line 17 of file Collider.cpp.

References mnd::Collider::m_shape.

Member Data Documentation

◆ m_shape

btCollisionShape* mnd::Collider::m_shape = nullptr
protectedinherited

The documentation for this class was generated from the following files: