36#include "PxPhysXConfig.h"
37#include "foundation/PxBounds3.h"
39#include "common/PxBase.h"
50class PxArticulationLink;
191 eACTOR_FORCE_DWORD = 0x7fffffff
367 virtual ~PxActor() {}
PxActor is the base class for the main simulation objects in the physics SDK.
Definition PxActor.h:201
virtual PxScene * getScene() const =0
Retrieves the scene which this actor belongs to.
virtual PxClientID getOwnerClient() const =0
Returns the owner client that was specified at creation time.
virtual void setOwnerClient(PxClientID inClient)=0
Sets the owner client of an actor.
virtual PxAggregate * getAggregate() const =0
Retrieves the aggregate the actor might be a part of.
virtual void setDominanceGroup(PxDominanceGroup dominanceGroup)=0
Assigns dynamic actors a dominance group identifier.
virtual PxDominanceGroup getDominanceGroup() const =0
Retrieves the value set with setDominanceGroup().
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition PxActor.h:368
virtual PxActorFlags getActorFlags() const =0
Reads the PxActor flags.
virtual void setActorFlag(PxActorFlag::Enum flag, bool value)=0
Raises or clears a particular actor flag.
virtual void release()=0
Deletes the actor.
void * userData
user can assign this to whatever, usually to create a 1:1 relationship with a user object.
Definition PxActor.h:362
virtual void setActorFlags(PxActorFlags inFlags)=0
Sets the actor flags.
virtual const char * getName() const =0
Retrieves the name string set with setName().
virtual void setName(const char *name)=0
Sets a name string for the object that can be retrieved with getName().
virtual PxBounds3 getWorldBounds(float inflation=1.01f) const =0
Retrieves the axis aligned bounding box enclosing the actor.
virtual PxActorType::Enum getType() const =0
Retrieves the type of actor.
Class to aggregate actors into a single broad-phase entry.
Definition PxAggregate.h:98
Base class for objects that can be members of a PxCollection.
Definition PxBase.h:73
virtual bool isKindOf(const char *superClass) const
Returns whether a given type name matches with the type of this instance.
Definition PxBase.h:179
Class representing 3D range or axis aligned bounding box.
Definition PxBounds3.h:58
Container for bitfield flag variables associated with a specific enum type.
Definition PxFlags.h:73
A scene is a collection of bodies and constraints which can interact.
Definition PxScene.h:178
#define PX_INLINE
Definition PxPreprocessor.h:320
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PxU8 PxClientID
An ID to identify different clients for multiclient support.
Definition PxClient.h:44
PxU8 PxDominanceGroup
Group index which allows to specify 1- or 2-way interaction.
Definition PxActor.h:56
PxFlags< PxActorFlag::Enum, PxU8 > PxActorFlags
collection of set bits defined in PxActorFlag.
Definition PxActor.h:111
Flags which control the behavior of an actor.
Definition PxActor.h:64
Enum
Definition PxActor.h:66
@ eDISABLE_SIMULATION
Disables simulation for the actor.
Definition PxActor.h:102
@ eSEND_SLEEP_NOTIFIES
Enables the sending of PxSimulationEventCallback::onWake() and PxSimulationEventCallback::onSleep() n...
Definition PxActor.h:84
@ eDISABLE_GRAVITY
Disables scene gravity for this actor.
Definition PxActor.h:77
@ eVISUALIZATION
Enable debug renderer for this actor.
Definition PxActor.h:72
Identifies each type of actor.
Definition PxActor.h:119
Enum
Definition PxActor.h:121
@ eACTOR_COUNT
internal use only!
Definition PxActor.h:188
@ eCUSTOM_PARTICLESYSTEM
A CUSTOM ParticleSystem.
Definition PxActor.h:178
@ eARTICULATION_LINK
An articulation link.
Definition PxActor.h:138
@ eFLIP_PARTICLESYSTEM
A FLIP ParticleSystem.
Definition PxActor.h:164
@ eFEMCLOTH
A FEM-based cloth.
Definition PxActor.h:151
@ eSOFTBODY
A FEM-based soft body.
Definition PxActor.h:144
@ eHAIRSYSTEM
A HairSystem.
Definition PxActor.h:185
@ ePBD_PARTICLESYSTEM
A PBD ParticleSystem.
Definition PxActor.h:157
@ eMPM_PARTICLESYSTEM
A MPM ParticleSystem.
Definition PxActor.h:171
@ eRIGID_STATIC
A static rigid body.
Definition PxActor.h:126
@ eRIGID_DYNAMIC
A dynamic rigid body.
Definition PxActor.h:132