My Project
|
a meta ball is a building block of meta world fragment. More...
#include <MetaBall.h>
Public Member Functions | |
MetaBall (MetaWorldFragment *wf, const Vector3 &position, float radius=3.0f, bool excavating=true) | |
virtual void | updateDataGrid (DataGrid *dataGrid) |
Adds this meta ball to the data grid. | |
float | getRadius () const |
Returns the radius of the meta ball. | |
void | setRadius (float radius) |
Sets the radius of the meta ball. | |
void | setExcavating (bool e) |
virtual CShapeAABB | getAABB () const |
Checks for overlap with an AABB. | |
![]() | |
MetaObject (MetaWorldFragment *wf, const Vector3 &position) | |
MetaObject (MetaWorldFragment *wf) | |
const Vector3 & | getPosition () const |
Returns the position of the meta object. | |
void | setPosition (const Vector3 &position) |
Sets the position of the meta object. | |
MetaWorldFragment * | getMetaWorldFragment () const |
Returns the MetaWorldFragment* of the meta object. | |
![]() | |
void | addref () const |
add reference count of the object. More... | |
bool | delref () const |
decrease reference count of the object. More... | |
int | GetRefCount () const |
get the reference count | |
virtual int | Release () |
CRefCounted * | AddToAutoReleasePool () |
addref and releases the ownership sometime soon automatically (usually at the end of the current frame). More... | |
Protected Attributes | |
float | mRadius |
bool | mExcavating |
![]() | |
Vector3 | mPosition |
MetaWorldFragment * | mMetaWorldFragment |
![]() | |
int | m_refcount |
a meta ball is a building block of meta world fragment.
it is a ball object with a given center and a radius. It can either be excavating or not. excavating is means a solid ball, non-excavating means hollow ball(empty space)