#include <spherecollider.h>
Inheritance diagram for oxygen::SphereCollider:
Public Member Functions | |
SphereCollider () | |
void | SetRadius (float r) |
sets the radius of the managed ODE sphere geom | |
float | GetRadius () const |
get the radius back from ODE | |
float | GetPointDepth (const salt::Vector3f &pos) |
returns the depth of the given relative position in the managed sphere. | |
Protected Member Functions | |
virtual bool | ConstructInternal () |
constructs a default sphere with a radius of 1 |
Definition at line 32 of file spherecollider.h.
|
Definition at line 27 of file spherecollider.cpp. |
|
constructs a default sphere with a radius of 1
Reimplemented from zeitgeist::Object. Definition at line 44 of file spherecollider.cpp. References zeitgeist::Object::ConstructInternal(), and oxygen::Collider::mODEGeom. Here is the call graph for this function: ![]() |
|
returns the depth of the given relative position in the managed sphere. 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 58 of file spherecollider.cpp. References oxygen::BaseNode::GetWorldTransform(), and oxygen::Collider::mODEGeom. Here is the call graph for this function: ![]() |
|
get the radius back from ODE
Definition at line 38 of file spherecollider.cpp. References oxygen::Collider::mODEGeom. |
|
sets the radius of the managed ODE sphere geom
Definition at line 32 of file spherecollider.cpp. References oxygen::Collider::mODEGeom. |