PxActor is the base class for the main simulation objects in the physics SDK. More...
#include <PxActor.h>
Public Member Functions | |
virtual void | release ()=0 |
Deletes the actor. More... | |
virtual PxActorType::Enum | getType () const =0 |
Retrieves the type of actor. More... | |
virtual PxScene * | getScene () const =0 |
Retrieves the scene which this actor belongs to. More... | |
virtual void | setName (const char *name)=0 |
Sets a name string for the object that can be retrieved with getName(). More... | |
virtual const char * | getName () const =0 |
Retrieves the name string set with setName(). More... | |
virtual PxBounds3 | getWorldBounds (float inflation=1.01f) const =0 |
Retrieves the axis aligned bounding box enclosing the actor. More... | |
virtual void | setActorFlag (PxActorFlag::Enum flag, bool value)=0 |
Raises or clears a particular actor flag. More... | |
virtual void | setActorFlags (PxActorFlags inFlags)=0 |
sets the actor flags More... | |
virtual PxActorFlags | getActorFlags () const =0 |
Reads the PxActor flags. More... | |
virtual void | setDominanceGroup (PxDominanceGroup dominanceGroup)=0 |
Assigns dynamic actors a dominance group identifier. More... | |
virtual PxDominanceGroup | getDominanceGroup () const =0 |
Retrieves the value set with setDominanceGroup(). More... | |
virtual void | setOwnerClient (PxClientID inClient)=0 |
Sets the owner client of an actor. More... | |
virtual PxClientID | getOwnerClient () const =0 |
Returns the owner client that was specified with at creation time. More... | |
virtual PxAggregate * | getAggregate () const =0 |
Retrieves the aggregate the actor might be a part of. More... | |
Public Member Functions inherited from PxBase | |
virtual const char * | getConcreteTypeName () const =0 |
Returns string name of dynamic type. More... | |
template<class T > | |
T * | is () |
template<class T > | |
const T * | is () const |
PX_FORCE_INLINE PxType | getConcreteType () const |
Returns concrete type of object. More... | |
PX_FORCE_INLINE void | setBaseFlag (PxBaseFlag::Enum flag, bool value) |
Set PxBaseFlag. More... | |
PX_FORCE_INLINE void | setBaseFlags (PxBaseFlags inFlags) |
Set PxBaseFlags. More... | |
PX_FORCE_INLINE PxBaseFlags | getBaseFlags () const |
Returns PxBaseFlags. More... | |
virtual bool | isReleasable () const |
Whether the object is subordinate. More... | |
Public Attributes | |
void * | userData |
user can assign this to whatever, usually to create a 1:1 relationship with a user object. More... | |
Protected Member Functions | |
PX_INLINE | PxActor (PxType concreteType, PxBaseFlags baseFlags) |
PX_INLINE | PxActor (PxBaseFlags baseFlags) |
virtual | ~PxActor () |
virtual bool | isKindOf (const char *name) const |
Returns whether a given type name matches with the type of this instance. More... | |
Protected Member Functions inherited from PxBase | |
PX_INLINE | PxBase (PxType concreteType, PxBaseFlags baseFlags) |
Constructor setting concrete type and base flags. More... | |
PX_INLINE | PxBase (PxBaseFlags baseFlags) |
Deserialization constructor setting base flags. More... | |
virtual | ~PxBase () |
Destructor. More... | |
template<class T > | |
bool | typeMatch () const |
Additional Inherited Members | |
Protected Attributes inherited from PxBase | |
PxType | mConcreteType |
PxBaseFlags | mBaseFlags |
PxActor is the base class for the main simulation objects in the physics SDK.
The actor is owned by and contained in a PxScene.
|
inlineprotected |
|
inlineprotected |
|
inlineprotectedvirtual |
|
pure virtual |
Reads the PxActor flags.
See the list of flags PxActorFlag
|
pure virtual |
Retrieves the aggregate the actor might be a part of.
|
pure virtual |
Retrieves the value set with setDominanceGroup().
|
pure virtual |
|
pure virtual |
Returns the owner client that was specified with at creation time.
This value cannot be changed once the object is placed into the scene.
|
pure virtual |
Retrieves the scene which this actor belongs to.
|
pure virtual |
|
pure virtual |
Retrieves the axis aligned bounding box enclosing the actor.
[in] | inflation | Scale factor for computed world bounds. Box extents are multiplied by this value. |
|
inlineprotectedvirtual |
Returns whether a given type name matches with the type of this instance.
Reimplemented from PxBase.
Reimplemented in PxRigidBody, PxRigidDynamic, PxRigidActor, PxArticulationLink, and PxRigidStatic.
References PxBase::isKindOf().
Referenced by PxRigidActor::isKindOf().
|
pure virtual |
Deletes the actor.
Do not keep a reference to the deleted instance.
If the actor belongs to a PxAggregate object, it is automatically removed from the aggregate.
Implements PxBase.
Implemented in PxRigidActor, and PxArticulationLink.
|
pure virtual |
Raises or clears a particular actor flag.
See the list of flags PxActorFlag
Sleeping: Does NOT wake the actor up automatically.
[in] | flag | The PxActor flag to raise(set) or clear. See PxActorFlag. |
[in] | value | The boolean value to assign to the flag. |
Default: PxActorFlag::eVISUALIZATION
|
pure virtual |
|
pure virtual |
Assigns dynamic actors a dominance group identifier.
PxDominanceGroup is a 5 bit group identifier (legal range from 0 to 31).
The PxScene::setDominanceGroupPair() lets you set certain behaviors for pairs of dominance groups. By default every dynamic actor is created in group 0.
Default: 0
Sleeping: Changing the dominance group does NOT wake the actor up automatically.
[in] | dominanceGroup | The dominance group identifier. Range: [0..31] |
|
pure virtual |
|
pure virtual |
Sets the owner client of an actor.
This cannot be done once the actor has been placed into a scene.
Default: PX_DEFAULT_CLIENT
void* PxActor::userData |
user can assign this to whatever, usually to create a 1:1 relationship with a user object.