Package physx.physics

Class PxArticulationDrive

java.lang.Object
physx.NativeObject
physx.physics.PxArticulationDrive

public class PxArticulationDrive extends NativeObject
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxArticulationDrive

      protected PxArticulationDrive(long address)
    • PxArticulationDrive

      public PxArticulationDrive()
    • PxArticulationDrive

      public PxArticulationDrive(float stiffness, float damping, float maxForce, PxArticulationDriveTypeEnum driveType)
      Parameters:
      stiffness - WebIDL type: float
      damping - WebIDL type: float
      maxForce - WebIDL type: float
      driveType - WebIDL type: PxArticulationDriveTypeEnum [enum]
  • Method Details

    • wrapPointer

      public static PxArticulationDrive wrapPointer(long address)
    • arrayGet

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

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

      public static <T> PxArticulationDrive 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 PxArticulationDrive
    • createAt

      public static PxArticulationDrive createAt(long address, float stiffness, float damping, float maxForce, PxArticulationDriveTypeEnum driveType)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      stiffness - WebIDL type: float
      damping - WebIDL type: float
      maxForce - WebIDL type: float
      driveType - WebIDL type: PxArticulationDriveTypeEnum [enum]
      Returns:
      Stack allocated object of PxArticulationDrive
    • createAt

      public static <T> PxArticulationDrive createAt(T allocator, NativeObject.Allocator<T> allocate, float stiffness, float damping, float maxForce, PxArticulationDriveTypeEnum driveType)
      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.
      stiffness - WebIDL type: float
      damping - WebIDL type: float
      maxForce - WebIDL type: float
      driveType - WebIDL type: PxArticulationDriveTypeEnum [enum]
      Returns:
      Stack allocated object of PxArticulationDrive
    • destroy

      public void destroy()
    • getStiffness

      public float getStiffness()
      Returns:
      WebIDL type: float
    • setStiffness

      public void setStiffness(float value)
      Parameters:
      value - WebIDL type: float
    • getDamping

      public float getDamping()
      Returns:
      WebIDL type: float
    • setDamping

      public void setDamping(float value)
      Parameters:
      value - WebIDL type: float
    • getMaxForce

      public float getMaxForce()
      Returns:
      WebIDL type: float
    • setMaxForce

      public void setMaxForce(float value)
      Parameters:
      value - WebIDL type: float
    • getDriveType

      public PxArticulationDriveTypeEnum getDriveType()
      Returns:
      WebIDL type: PxArticulationDriveTypeEnum [enum]
    • setDriveType

      public void setDriveType(PxArticulationDriveTypeEnum value)
      Parameters:
      value - WebIDL type: PxArticulationDriveTypeEnum [enum]