PxParticlePhase

Defined in include/PxParticlePhase.h

class PxParticlePhase

A per particle identifier to define the particles behavior, its group and to reference a material.

Public Functions

virtual void setFlags(PxParticlePhaseFlags flags) = 0

Set phase flags.

Allows to control self collision, etc.

Parameters

flags[in] The filter flags

virtual void setFlag(PxParticlePhaseFlag::Enum flag, bool enabled) = 0

Set phase flag.

Allows to control self collision etc.

Parameters
  • flag[in] The flag to set

  • enabled[in] The new value of the flag

virtual PxParticlePhaseFlags getFlags() const = 0

Retrieves the phase flags.

Returns

The phase flags

virtual PxU32 getGroupId() const = 0

Returns the group id.

Returns

The group id

virtual PxParticleMaterial *getMaterial() const = 0

Returns the pointer to the material used by this phase.

Returns

The material pointer

virtual void setMaterial(PxParticleMaterial *material) = 0

Sets the material associated referenced by this phase.

Parameters

material[in] The pointer to the material that should be used by this phase

Protected Functions

inline virtual ~PxParticlePhase()