- All Implemented Interfaces:
Serializable,Comparable<PxShapeFlagEnum>,Constable
See also: PxShape PxShape.setFlag()
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe shape will partake in scene queries (ray casts, overlap tests, sweeps, ...).The shape will partake in collision in the physical simulation.The shape is a trigger which can send reports whenever other shapes enter/leave its volume.Enable debug renderer for this shape -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PxShapeFlagEnumforValue(int value) static PxShapeFlagEnumReturns the enum constant of this class with the specified name.static PxShapeFlagEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
The shape will partake in scene queries (ray casts, overlap tests, sweeps, ...). -
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
Enable debug renderer for this shapeSee also: PxScene.getRenderBuffer() PxRenderBuffer PxVisualizationParameter
-
-
Field Details
-
value
public final int value
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
forValue
-