#include <BoxCollider.h>
Public Member Functions | |
virtual const RTTI & | getType () const |
BoxCollider (const Vec3f &Center, const Vec3f &size) | |
const Vec3f & | getCenter () const |
const Vec3f & | getSize () const |
bool | rayCast (const Ray &ray, RayCastHit &hit) const |
void | renderGuizmo () const |
Static Public Attributes | |
static const RTTI | TYPE |
Protected Attributes | |
Vec3f | center |
Vec3f | size |
Class for a oriented box collider Component.
bool BoxCollider::rayCast | ( | const Ray & | ray, | |
RayCastHit & | hit | |||
) | const [virtual] |
Casts a ray against the box using the slabs method.
Reimplemented from Collider.
void BoxCollider::renderGuizmo | ( | ) | const [virtual] |
render the box guizmo, used by the engine in debug mode.
Reimplemented from Collider.
Vec3f BoxCollider::center [protected] |
Center of the box in the GameObject owner's space.
Vec3f BoxCollider::size [protected] |
Size (halfhedges) of the box in the GameObject owner's space.