Class PxJointLinearLimit


public class PxJointLinearLimit extends PxJointLimitParameters
Describes a one-sided linear limit.
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxJointLinearLimit

      protected PxJointLinearLimit()
    • PxJointLinearLimit

      protected PxJointLinearLimit(long address)
    • PxJointLinearLimit

      public PxJointLinearLimit(float extent, PxSpring spring)
      construct a linear soft limit
      Parameters:
      extent - the extent of the limit
      spring - the stiffness and damping parameters for the limit spring
      See Also:
  • Method Details

    • wrapPointer

      public static PxJointLinearLimit wrapPointer(long address)
    • arrayGet

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

      public static PxJointLinearLimit createAt(long address, float extent, PxSpring spring)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      extent - WebIDL type: float
      spring - WebIDL type: PxSpring [Const, Ref]
      Returns:
      Stack allocated object of PxJointLinearLimit
    • createAt

      public static <T> PxJointLinearLimit createAt(T allocator, NativeObject.Allocator<T> allocate, float extent, PxSpring spring)
      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.
      extent - WebIDL type: float
      spring - WebIDL type: PxSpring [Const, Ref]
      Returns:
      Stack allocated object of PxJointLinearLimit
    • destroy

      public void destroy()
    • getValue

      public float getValue()
      the extent of the limit.

      Range: (0, PX_MAX_F32)
      Default: PX_MAX_F32

    • setValue

      public void setValue(float value)
      the extent of the limit.

      Range: (0, PX_MAX_F32)
      Default: PX_MAX_F32