Package physx.physics

Enum Class PxShapeFlagEnum

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

public enum PxShapeFlagEnum extends Enum<PxShapeFlagEnum>
Flags which affect the behavior of PxShapes.

See also: PxShape PxShape.setFlag()

  • Enum Constant Details

    • eSIMULATION_SHAPE

      public static final PxShapeFlagEnum eSIMULATION_SHAPE
      The shape will partake in collision in the physical simulation.

      Note: It is illegal to raise the eSIMULATION_SHAPE and eTRIGGER_SHAPE flags. In the event that one of these flags is already raised the sdk will reject any attempt to raise the other. To raise the eSIMULATION_SHAPE first ensure that eTRIGGER_SHAPE is already lowered.

      Note: This flag has no effect if simulation is disabled for the corresponding actor (see #PxActorFlag::eDISABLE_SIMULATION).

      See also: PxSimulationEventCallback.onContact() PxScene.setSimulationEventCallback() PxShape.setFlag(), PxShape.setFlags()

    • eSCENE_QUERY_SHAPE

      public static final PxShapeFlagEnum eSCENE_QUERY_SHAPE
      The shape will partake in scene queries (ray casts, overlap tests, sweeps, ...).
    • eTRIGGER_SHAPE

      public static final PxShapeFlagEnum eTRIGGER_SHAPE
      The shape is a trigger which can send reports whenever other shapes enter/leave its volume.

      Note: Triangle meshes and heightfields can not be triggers. Shape creation will fail in these cases.

      Note: Shapes marked as triggers do not collide with other objects. If an object should act both as a trigger shape and a collision shape then create a rigid body with two shapes, one being a trigger shape and the other a collision shape. It is illegal to raise the eTRIGGER_SHAPE and eSIMULATION_SHAPE flags on a single PxShape instance. In the event that one of these flags is already raised the sdk will reject any attempt to raise the other. To raise the eTRIGGER_SHAPE flag first ensure that eSIMULATION_SHAPE flag is already lowered.

      Note: Trigger shapes will no longer send notification events for interactions with other trigger shapes.

      Note: Shapes marked as triggers are allowed to participate in scene queries, provided the eSCENE_QUERY_SHAPE flag is set.

      Note: This flag has no effect if simulation is disabled for the corresponding actor (see #PxActorFlag::eDISABLE_SIMULATION).

      See also: PxSimulationEventCallback.onTrigger() PxScene.setSimulationEventCallback() PxShape.setFlag(), PxShape.setFlags()

    • eVISUALIZATION

      public static final PxShapeFlagEnum eVISUALIZATION
      Enable debug renderer for this shape

      See also: PxScene.getRenderBuffer() PxRenderBuffer PxVisualizationParameter

  • Field Details

    • value

      public final int value
  • Method Details

    • values

      public static PxShapeFlagEnum[] 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 PxShapeFlagEnum 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 PxShapeFlagEnum forValue(int value)