Package physx.physics

Class PxArticulationLimit

java.lang.Object
physx.NativeObject
physx.physics.PxArticulationLimit

public class PxArticulationLimit extends NativeObject
Data structure to set articulation joint limits.

- The lower limit should be strictly smaller than the higher limit. If the limits should be equal, use PxArticulationMotion::eLOCKED and an appropriate offset in the parent/child joint frames. - The limit units are linear units (equivalent to scene units) for a translational axis, or radians for a rotational axis.

See Also:
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxArticulationLimit

      protected PxArticulationLimit(long address)
    • PxArticulationLimit

      public PxArticulationLimit()
    • PxArticulationLimit

      public PxArticulationLimit(float low, float high)
      Parameters:
      low - WebIDL type: float
      high - WebIDL type: float
  • Method Details

    • wrapPointer

      public static PxArticulationLimit wrapPointer(long address)
    • arrayGet

      public static PxArticulationLimit arrayGet(long baseAddress, int index)
    • createAt

      public static PxArticulationLimit createAt(long address)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      Returns:
      Stack allocated object of PxArticulationLimit
    • createAt

      public static <T> PxArticulationLimit createAt(T allocator, NativeObject.Allocator<T> allocate)
      Type Parameters:
      T - Allocator class, e.g. LWJGL's MemoryStack.
      Parameters:
      allocator - Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.
      allocate - Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.
      Returns:
      Stack allocated object of PxArticulationLimit
    • createAt

      public static PxArticulationLimit createAt(long address, float low, float high)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      low - WebIDL type: float
      high - WebIDL type: float
      Returns:
      Stack allocated object of PxArticulationLimit
    • createAt

      public static <T> PxArticulationLimit createAt(T allocator, NativeObject.Allocator<T> allocate, float low, float high)
      Type Parameters:
      T - Allocator class, e.g. LWJGL's MemoryStack.
      Parameters:
      allocator - Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.
      allocate - Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.
      low - WebIDL type: float
      high - WebIDL type: float
      Returns:
      Stack allocated object of PxArticulationLimit
    • destroy

      public void destroy()
    • getLow

      public float getLow()
      The lower limit on the joint axis position.

      Range: [-PX_MAX_F32, high)
      Default: 0.0f

    • setLow

      public void setLow(float value)
      The lower limit on the joint axis position.

      Range: [-PX_MAX_F32, high)
      Default: 0.0f

    • getHigh

      public float getHigh()
      The higher limit on the joint axis position.

      Range: (low, PX_MAX_F32]
      Default: 0.0f

    • setHigh

      public void setHigh(float value)
      The higher limit on the joint axis position.

      Range: (low, PX_MAX_F32]
      Default: 0.0f