#include <ccylindercollider.h>
Inheritance diagram for oxygen::CCylinderCollider:
Public Member Functions | |
CCylinderCollider () | |
void | SetParams (float radius, float length) |
sets the parameters of the capped cylinder. | |
void | SetRadius (float radius) |
sets the radius of the capped cylinder | |
void | SetLength (float length) |
sets the length of the capped cylinder | |
void | GetParams (float &radius, float &length) |
gets the radius and the length of the capped cylinder | |
float | GetRadius () |
returns the radius of the capped cylinder | |
float | GetLength () |
return the length of the capped cylinder | |
float | GetPointDepth (const salt::Vector3f &pos) |
returns the depth of the given relative position in the managed capped cylinder geom. | |
Protected Member Functions | |
virtual bool | ConstructInternal () |
constructs a default capped cylinder with an radius of 1 and a length of 1 |
A capped cylinder is like a normal cylinder except it has half-sphere caps at its ends. This feature makes the internal collision detection code particularly fast and accurate.
Definition at line 35 of file ccylindercollider.h.
|
Definition at line 27 of file ccylindercollider.cpp. |
|
constructs a default capped cylinder with an radius of 1 and a length of 1
Reimplemented from zeitgeist::Object. Definition at line 74 of file ccylindercollider.cpp. References zeitgeist::Object::ConstructInternal(), and oxygen::Collider::mODEGeom. Here is the call graph for this function: ![]() |
|
return the length of the capped cylinder
Definition at line 65 of file ccylindercollider.cpp. References GetParams(). Referenced by SetRadius(). Here is the call graph for this function: ![]() |
|
gets the radius and the length of the capped cylinder
Definition at line 47 of file ccylindercollider.cpp. References oxygen::Collider::mODEGeom. Referenced by GetLength(), and GetRadius(). |
|
returns the depth of the given relative position in the managed capped cylinder geom. Points inside the geom will have positive depth, points outside it will have negative depth, and points on the surface will have zero depth. Definition at line 88 of file ccylindercollider.cpp. References oxygen::BaseNode::GetWorldTransform(), and oxygen::Collider::mODEGeom. Here is the call graph for this function: ![]() |
|
returns the radius of the capped cylinder
Definition at line 56 of file ccylindercollider.cpp. References GetParams(). Referenced by SetLength(). Here is the call graph for this function: ![]() |
|
sets the length of the capped cylinder
Definition at line 41 of file ccylindercollider.cpp. References GetRadius(), and SetParams(). Here is the call graph for this function: ![]() |
|
sets the parameters of the capped cylinder.
Definition at line 31 of file ccylindercollider.cpp. References oxygen::Collider::mODEGeom. Referenced by SetLength(), and SetRadius(). |
|
sets the radius of the capped cylinder
Definition at line 36 of file ccylindercollider.cpp. References GetLength(), and SetParams(). Here is the call graph for this function: ![]() |