Public Member Functions | Static Public Attributes | Protected Attributes

BoxCollider Class Reference

#include <BoxCollider.h>

Inheritance diagram for BoxCollider:
Collider Component Object

List of all members.

Public Member Functions

virtual const RTTIgetType () 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

Detailed Description

Class for a oriented box collider Component.


Member Function Documentation

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.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables