RavEngine
Loading...
Searching...
No Matches
physx::PxRigidStatic Class Reference

PxRigidStatic represents a static rigid body simulation object in the physics SDK. More...

#include <PxRigidStatic.h>

Inheritance diagram for physx::PxRigidStatic:
[legend]
Collaboration diagram for physx::PxRigidStatic:
[legend]

Public Member Functions

virtual const char * getConcreteTypeName () const
 Returns string name of dynamic type.
 
- Public Member Functions inherited from physx::PxRigidActor
virtual void release ()=0
 Deletes the rigid actor object.
 
virtual PxU32 getInternalActorIndex () const =0
 Returns the internal actor index.
 
virtual PxTransform getGlobalPose () const =0
 Retrieves the actors world space transform.
 
virtual void setGlobalPose (const PxTransform &pose, bool autowake=true)=0
 Method for setting an actor's pose in the world.
 
virtual bool attachShape (PxShape &shape)=0
 Attach a shape to an actor.
 
virtual void detachShape (PxShape &shape, bool wakeOnLostTouch=true)=0
 Detach a shape from an actor.
 
virtual PxU32 getNbShapes () const =0
 Returns the number of shapes assigned to the actor.
 
virtual PxU32 getShapes (PxShape **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0
 Retrieve all the shape pointers belonging to the actor.
 
virtual PxU32 getNbConstraints () const =0
 Returns the number of constraint shaders attached to the actor.
 
virtual PxU32 getConstraints (PxConstraint **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0
 Retrieve all the constraint shader pointers belonging to the actor.
 
- Public Member Functions inherited from physx::PxActor
virtual PxActorType::Enum getType () const =0
 Retrieves the type of actor.
 
virtual PxScene * getScene () const =0
 Retrieves the scene which this actor belongs to.
 
virtual void setName (const char *name)=0
 Sets a name string for the object that can be retrieved with getName().
 
virtual const char * getName () const =0
 Retrieves the name string set with setName().
 
virtual PxBounds3 getWorldBounds (float inflation=1.01f) const =0
 Retrieves the axis aligned bounding box enclosing the actor.
 
virtual void setActorFlag (PxActorFlag::Enum flag, bool value)=0
 Raises or clears a particular actor flag.
 
virtual void setActorFlags (PxActorFlags inFlags)=0
 Sets the actor flags.
 
virtual PxActorFlags getActorFlags () const =0
 Reads the PxActor flags.
 
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 void setOwnerClient (PxClientID inClient)=0
 Sets the owner client of an actor.
 
virtual PxClientID getOwnerClient () const =0
 Returns the owner client that was specified at creation time.
 
virtual PxAggregate * getAggregate () const =0
 Retrieves the aggregate the actor might be a part of.
 
- Public Member Functions inherited from physx::PxBase
template<class T >
T * is ()
 
template<class T >
const T * is () const
 
PX_FORCE_INLINE PxType getConcreteType () const
 Returns concrete type of object.
 
PX_FORCE_INLINE void setBaseFlag (PxBaseFlag::Enum flag, bool value)
 Set PxBaseFlag

 
PX_FORCE_INLINE void setBaseFlags (PxBaseFlags inFlags)
 Set PxBaseFlags

 
PX_FORCE_INLINE PxBaseFlags getBaseFlags () const
 Returns PxBaseFlags.
 
virtual bool isReleasable () const
 Whether the object is subordinate.
 

Protected Member Functions

PX_INLINE PxRigidStatic (PxType concreteType, PxBaseFlags baseFlags)
 
PX_INLINE PxRigidStatic (PxBaseFlags baseFlags)
 
virtual bool isKindOf (const char *name) const
 Returns whether a given type name matches with the type of this instance.
 
- Protected Member Functions inherited from physx::PxRigidActor
PX_INLINE PxRigidActor (PxType concreteType, PxBaseFlags baseFlags)
 
PX_INLINE PxRigidActor (PxBaseFlags baseFlags)
 
- Protected Member Functions inherited from physx::PxActor
PX_INLINE PxActor (PxType concreteType, PxBaseFlags baseFlags)
 
PX_INLINE PxActor (PxBaseFlags baseFlags)
 
- Protected Member Functions inherited from physx::PxBase
PX_INLINE PxBase (PxType concreteType, PxBaseFlags baseFlags)
 Constructor setting concrete type and base flags.
 
PX_INLINE PxBase (PxBaseFlags baseFlags)
 Deserialization constructor setting base flags.
 
virtual ~PxBase ()
 Destructor.
 
template<class T >
bool typeMatch () const
 

Additional Inherited Members

- Public Attributes inherited from physx::PxActor
void * userData
 user can assign this to whatever, usually to create a 1:1 relationship with a user object.
 
- Protected Attributes inherited from physx::PxBase
PxType mConcreteType
 
PxBaseFlags mBaseFlags
 
PxU32 mBuiltInRefCount
 

Detailed Description

PxRigidStatic represents a static rigid body simulation object in the physics SDK.

PxRigidStatic objects are static rigid physics entities. They shall be used to define solid objects which are fixed in the world.

Creation

Instances of this class are created by calling PxPhysics::createRigidStatic() and deleted with release().

Visualizations

See also
PxRigidActor PxPhysics.createRigidStatic() release()

Member Function Documentation

◆ getConcreteTypeName()

virtual const char * physx::PxRigidStatic::getConcreteTypeName ( ) const
inlinevirtual

Returns string name of dynamic type.

Returns
Class name of most derived type of this object.

Implements physx::PxBase.

◆ isKindOf()

virtual bool physx::PxRigidStatic::isKindOf ( const char *  superClass) const
inlineprotectedvirtual

Returns whether a given type name matches with the type of this instance.

Reimplemented from physx::PxRigidActor.


The documentation for this class was generated from the following file: