Inherit from Ref, base class. More...
Inherits Ref.
Inherited by Physics3DCollider, and Physics3DRigidBody.
Public Member Functions | |
virtual PhysicsObjType | getObjType () const |
Get the Physics3DObject Type. | |
local | getObjType () |
Get the Physics3DObject Type. | |
void | setUserData (void *userData) |
Set the user data. | |
void * | getUserData () const |
Get the user data. | |
void | setPhysicsWorld (Physics3DWorld *world) |
Internal method. More... | |
Physics3DWorld * | getPhysicsWorld () const |
Get the pointer of Physics3DWorld. | |
virtual cocos2d::Mat4 | getWorldTransform () const =0 |
Get the world matrix of Physics3DObject. | |
void | setCollisionCallback (const CollisionCallbackFunc &func) |
Set the collision callback function. | |
const CollisionCallbackFunc & | getCollisionCallback () const |
Get the collision callback function. | |
bool | needCollisionCallback () |
Check has collision callback function. | |
void | setMask (unsigned int mask) |
Set the mask of Physics3DObject. | |
unsigned int | getMask () const |
Get the mask of Physics3DObject. | |
Public Member Functions inherited from Ref | |
void | retain () |
Retains the ownership. More... | |
local | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
local | getReferenceCount () |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
Destructor. | |
Additional Inherited Members | |
Public Attributes inherited from Ref | |
unsigned int | _ID |
object id, ScriptSupport need public _ID | |
local | _ID |
object id, ScriptSupport need public _ID | |
int | _luaID |
Lua reference id. | |
local | _luaID |
Lua reference id. | |
void * | _scriptObject |
scriptObject, support for swift | |
local | _scriptObject |
scriptObject, support for swift | |
bool | _rooted |
When true, it means that the object was already rooted. | |
local | _rooted |
When true, it means that the object was already rooted. | |
bool | _scriptOwned |
The life of the object is scrolled by the scripting engine. More... | |
local | _scriptOwned |
The life of the object is scrolled by the scripting engine. More... | |
Inherit from Ref, base class.
|
inline |
Internal method.
Set the pointer of Physics3DWorld.
|
inline |
Internal method.
Set the pointer of Physics3DWorld.
|
inline |
Internal method.
Set the pointer of Physics3DWorld.