RavEngine
Loading...
Searching...
No Matches
physx::Sc::BodySim Class Reference
Inheritance diagram for physx::Sc::BodySim:
[legend]
Collaboration diagram for physx::Sc::BodySim:
[legend]

Public Member Functions

 BodySim (Scene &, BodyCore &, bool)
 
void switchToKinematic (PxPool< SimStateData > *simStateDataPool)
 
void switchToDynamic (PxPool< SimStateData > *simStateDataPool)
 
PX_FORCE_INLINE const SimStateData * getSimStateData (bool isKinematic) const
 
PX_FORCE_INLINE SimStateData * getSimStateData (bool isKinematic)
 
PX_FORCE_INLINE SimStateData * getSimStateData_Unchecked () const
 
PX_FORCE_INLINE bool checkSimStateKinematicStatus (const bool isKinematic) const
 
void setKinematicTarget (const PxTransform &p)
 
void addSpatialAcceleration (PxPool< SimStateData > *simStateDataPool, const PxVec3 *linAcc, const PxVec3 *angAcc)
 
void setSpatialAcceleration (PxPool< SimStateData > *simStateDataPool, const PxVec3 *linAcc, const PxVec3 *angAcc)
 
void clearSpatialAcceleration (bool force, bool torque)
 
void addSpatialVelocity (PxPool< SimStateData > *simStateDataPool, const PxVec3 *linVelDelta, const PxVec3 *angVelDelta)
 
void clearSpatialVelocity (bool force, bool torque)
 
void updateCached (PxBitMapPinned *shapeChangedMap)
 
void updateCached (PxsTransformCache &transformCache, Bp::BoundsArray &boundsArray)
 
void updateContactDistance (PxReal *contactDistance, const PxReal dt, const Bp::BoundsArray &boundsArray)
 
virtual void postActorFlagChange (PxU32 oldFlags, PxU32 newFlags)
 
void postBody2WorldChange ()
 
void postSetWakeCounter (PxReal t, bool forceWakeUp)
 
void postPosePreviewChange (const PxU32 posePreviewFlag)
 
PX_FORCE_INLINE const PxTransform & getBody2World () const
 
PX_FORCE_INLINE const PxTransform & getBody2Actor () const
 
PX_FORCE_INLINE const PxsRigidBody & getLowLevelBody () const
 
PX_FORCE_INLINE PxsRigidBody & getLowLevelBody ()
 
void wakeUp ()
 
void putToSleep ()
 
void disableCompound ()
 
virtual void activate ()
 
virtual void deactivate ()
 
PX_FORCE_INLINE ConstraintGroupNode * getConstraintGroup ()
 
PX_FORCE_INLINE void setConstraintGroup (ConstraintGroupNode *node)
 
PX_FORCE_INLINE bool isKinematic () const
 
PX_FORCE_INLINE bool isArticulationLink () const
 
PX_FORCE_INLINE bool hasForcedKinematicNotif () const
 
void calculateKinematicVelocity (PxReal oneOverDt)
 
void updateKinematicPose ()
 
bool deactivateKinematic ()
 
virtual void internalWakeUp (PxReal wakeCounterValue)
 
void internalWakeUpArticulationLink (PxReal wakeCounterValue)
 
PxReal updateWakeCounter (PxReal dt, PxReal energyThreshold, const Cm::SpatialVector &motionVelocity)
 
void resetSleepFilter ()
 
void notifyReadyForSleeping ()
 
void notifyNotReadyForSleeping ()
 
PX_FORCE_INLINE bool checkSleepReadinessBesidesWakeCounter ()
 
virtual void registerCountedInteraction ()
 
virtual void unregisterCountedInteraction ()
 
virtual PxU32 getNumCountedInteractions () const
 
PX_FORCE_INLINE PxIntBool isFrozen () const
 
void updateForces (PxReal dt, PxsRigidBody **updatedBodySims, PxU32 *updatedBodyNodeIndices, PxU32 &index, Cm::SpatialVector *acceleration)
 
PX_FORCE_INLINE bool readVelocityModFlag (VelocityModFlags f)
 
PX_FORCE_INLINE PxU32 getFlagsFast () const
 
PX_FORCE_INLINE BodyCore & getBodyCore () const
 
PX_INLINE ArticulationSim * getArticulation () const
 
void setArticulation (ArticulationSim *a, PxReal wakeCounter, bool asleep, PxU32 bodyIndex)
 
PX_FORCE_INLINE void onConstraintAttach ()
 
void onConstraintDetach ()
 
PX_FORCE_INLINE void onOriginShift (const PxVec3 &shift, const bool isKinematic)
 
PX_FORCE_INLINE bool notInScene () const
 
PX_FORCE_INLINE bool usingSqKinematicTarget () const
 
PX_FORCE_INLINE PxU32 getNbShapes () const
 
void createSqBounds ()
 
void destroySqBounds ()
 
void freezeTransforms (PxBitMapPinned *shapeChangedMap)
 
void invalidateSqBounds ()
 
- Public Member Functions inherited from physx::Sc::RigidSim
 RigidSim (Scene &, RigidCore &)
 
PX_FORCE_INLINE RigidCore & getRigidCore () const
 
void notifyShapesOfTransformChange ()
 
void setBodyNodeIndex (const PxNodeIndex nodeIndex)
 
virtual PxActor * getPxActor () const
 
- Public Member Functions inherited from physx::Sc::ActorSim
 ActorSim (Scene &, ActorCore &)
 
PX_FORCE_INLINE Scene & getScene () const
 
PX_FORCE_INLINE PxU32 getActorInteractionCount () const
 
PX_FORCE_INLINE Interaction ** getActorInteractions () const
 
PX_FORCE_INLINE PxActorType::Enum getActorType () const
 
PX_FORCE_INLINE bool isDynamicRigid () const
 
PX_FORCE_INLINE bool isSoftBody () const
 
PX_FORCE_INLINE bool isFEMCloth () const
 
PX_FORCE_INLINE bool isParticleSystem () const
 
PX_FORCE_INLINE bool isHairSystem () const
 
PX_FORCE_INLINE bool isNonRigid () const
 
PX_FORCE_INLINE bool isStaticRigid () const
 
void setActorsInteractionsDirty (InteractionDirtyFlag::Enum flag, const ActorSim *other, PxU8 interactionFlag)
 
PX_FORCE_INLINE ActorCore & getActorCore () const
 
PX_FORCE_INLINE bool isActive () const
 
void setActive (bool active, PxU32 infoFlag=0)
 
PX_FORCE_INLINE PxU32 getActiveListIndex () const
 
PX_FORCE_INLINE void setActiveListIndex (PxU32 index)
 
PX_FORCE_INLINE PxU32 getActiveCompoundListIndex () const
 
PX_FORCE_INLINE void setActiveCompoundListIndex (PxU32 index)
 
PX_FORCE_INLINE PxNodeIndex getNodeIndex () const
 
PX_FORCE_INLINE PxU32 getActorID () const
 
PX_FORCE_INLINE PxU16 getInternalFlag () const
 
PX_FORCE_INLINE PxU16 readInternalFlag (InternalFlags flag) const
 
PX_FORCE_INLINE void raiseInternalFlag (InternalFlags flag)
 
PX_FORCE_INLINE void clearInternalFlag (InternalFlags flag)
 
- Public Member Functions inherited from physx::Sc::ShapeManager
PX_FORCE_INLINE PxU32 getNbElements () const
 
PX_FORCE_INLINE ElementSim ** getElements ()
 
PX_FORCE_INLINE ElementSim *const * getElements () const
 
void onElementDetach (ElementSim &element)
 
- Public Member Functions inherited from physx::PxUserAllocated
PX_INLINE void * operator new (size_t, void *address)
 
PX_INLINE void operator delete (void *, void *)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete (void *ptr, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete[] (void *ptr, Alloc alloc, const char *fileName, int line)
 
PX_INLINE void operator delete (void *ptr)
 
PX_INLINE void operator delete[] (void *ptr)
 

Static Public Member Functions

static PxU32 getRigidBodyOffset ()
 

Additional Inherited Members

- Public Types inherited from physx::Sc::ActorSim
enum  ActivityChangeInfoFlag { AS_PART_OF_CREATION = (1 << 0) , AS_PART_OF_ISLAND_GEN = (1 << 1) }
 
enum  InternalFlags {
  BF_HAS_STATIC_TOUCH = 1 << 1 , BF_KINEMATIC_MOVED = 1 << 2 , BF_ON_DEATHROW = 1 << 3 , BF_IS_IN_SLEEP_LIST = 1 << 4 ,
  BF_IS_IN_WAKEUP_LIST = 1 << 5 , BF_SLEEP_NOTIFY = 1 << 6 , BF_WAKEUP_NOTIFY = 1 << 7 , BF_HAS_CONSTRAINTS = 1 << 8 ,
  BF_KINEMATIC_SETTLING = 1 << 9 , BF_KINEMATIC_SETTLING_2 = 1 << 10 , BF_KINEMATIC_MOVE_FLAGS = BF_KINEMATIC_MOVED | BF_KINEMATIC_SETTLING | BF_KINEMATIC_SETTLING_2 , BF_KINEMATIC_SURFACE_VELOCITY = 1 << 11 ,
  BF_IS_COMPOUND_RIGID = 1 << 12
}
 
- Public Attributes inherited from physx::Sc::ShapeManager
Cm::PtrTable mShapes
 
- Protected Attributes inherited from physx::Sc::ActorSim
Interaction * mInlineInteractionMem [INLINE_INTERACTION_CAPACITY]
 
Cm::OwnedArray< Sc::Interaction *, Sc::ActorSim, PxU32, &Sc::ActorSim::reallocInteractions > mInteractions
 
Scene & mScene
 
ActorCore & mCore
 
PxU32 mActiveListIndex
 
PxU32 mActiveCompoundListIndex
 
PxNodeIndex mNodeIndex
 
PxU32 mId
 
PxU16 mInternalFlags
 
- Static Protected Attributes inherited from physx::Sc::ActorSim
static const PxU32 INLINE_INTERACTION_CAPACITY = 4
 

Member Function Documentation

◆ activate()

void BodySim::activate ( )
virtual

Reimplemented from physx::Sc::ActorSim.

◆ deactivate()

void BodySim::deactivate ( )
virtual

Reimplemented from physx::Sc::ActorSim.

◆ getNumCountedInteractions()

virtual PxU32 physx::Sc::BodySim::getNumCountedInteractions ( ) const
inlinevirtual

Reimplemented from physx::Sc::ActorSim.

◆ internalWakeUp()

void BodySim::internalWakeUp ( PxReal  wakeCounterValue)
virtual

Reimplemented from physx::Sc::ActorSim.

◆ postActorFlagChange()

void BodySim::postActorFlagChange ( PxU32  oldFlags,
PxU32  newFlags 
)
virtual

Reimplemented from physx::Sc::ActorSim.

◆ registerCountedInteraction()

virtual void physx::Sc::BodySim::registerCountedInteraction ( )
inlinevirtual

Reimplemented from physx::Sc::ActorSim.

◆ unregisterCountedInteraction()

virtual void physx::Sc::BodySim::unregisterCountedInteraction ( )
inlinevirtual

Reimplemented from physx::Sc::ActorSim.


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