Package physx.physics

Enum Class PxActorFlagEnum

java.lang.Object
java.lang.Enum<PxActorFlagEnum>
physx.physics.PxActorFlagEnum
All Implemented Interfaces:
Serializable, Comparable<PxActorFlagEnum>, Constable

public enum PxActorFlagEnum extends Enum<PxActorFlagEnum>
Flags which control the behavior of an actor.

See also: PxActorFlags PxActor PxActor.setActorFlag() PxActor.getActorFlags()

  • Enum Constant Details

    • eVISUALIZATION

      public static final PxActorFlagEnum eVISUALIZATION
      Enable debug renderer for this actor

      See also: PxScene.getRenderBuffer() PxRenderBuffer PxVisualizationParameter

    • eDISABLE_GRAVITY

      public static final PxActorFlagEnum eDISABLE_GRAVITY
      Disables scene gravity for this actor
    • eSEND_SLEEP_NOTIFIES

      public static final PxActorFlagEnum eSEND_SLEEP_NOTIFIES
      Enables the sending of PxSimulationEventCallback::onWake() and PxSimulationEventCallback::onSleep() notify events

      See also: PxSimulationEventCallback::onWake() PxSimulationEventCallback::onSleep()

    • eDISABLE_SIMULATION

      public static final PxActorFlagEnum eDISABLE_SIMULATION
      Disables simulation for the actor.

      Note: This is only supported by PxRigidStatic and PxRigidDynamic actors and can be used to reduce the memory footprint when rigid actors are used for scene queries only.

      Note: Setting this flag will remove all constraints attached to the actor from the scene.

      Note: If this flag is set, the following calls are forbidden: \li PxRigidBody: setLinearVelocity(), setAngularVelocity(), addForce(), addTorque(), clearForce(), clearTorque(), setForceAndTorque() \li PxRigidDynamic: setKinematicTarget(), setWakeCounter(), wakeUp(), putToSleep()

      \par Sleeping: Raising this flag will set all velocities and the wake counter to 0, clear all forces, clear the kinematic target, put the actor to sleep and wake up all touching actors from the previous frame.

  • Field Details

    • value

      public final int value
  • Method Details

    • values

      public static PxActorFlagEnum[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PxActorFlagEnum valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forValue

      public static PxActorFlagEnum forValue(int value)