Package physx.physics

Enum Class PxForceModeEnum

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

public enum PxForceModeEnum extends Enum<PxForceModeEnum>
Parameter to addForce() and addTorque() calls, determines the exact operation that is carried out.

See also: PxRigidBody.addForce() PxRigidBody.addTorque()

  • Enum Constant Details

    • eFORCE

      public static final PxForceModeEnum eFORCE
      parameter has unit of mass * length / time^2, i.e., a force
    • eIMPULSE

      public static final PxForceModeEnum eIMPULSE
      parameter has unit of mass * length / time, i.e., force * time
    • eVELOCITY_CHANGE

      public static final PxForceModeEnum eVELOCITY_CHANGE
      parameter has unit of length / time, i.e., the effect is mass independent: a velocity change.
    • eACCELERATION

      public static final PxForceModeEnum eACCELERATION
  • Field Details

    • value

      public final int value
  • Method Details

    • values

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