Package physx.physics

Class PxConstraintFlags

java.lang.Object
physx.NativeObject
physx.physics.PxConstraintFlags

public class PxConstraintFlags extends NativeObject
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxConstraintFlags

      protected PxConstraintFlags()
    • PxConstraintFlags

      protected PxConstraintFlags(long address)
    • PxConstraintFlags

      public PxConstraintFlags(short flags)
      Parameters:
      flags - WebIDL type: unsigned short
  • Method Details

    • wrapPointer

      public static PxConstraintFlags wrapPointer(long address)
    • arrayGet

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

      public static PxConstraintFlags createAt(long address, short flags)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      flags - WebIDL type: unsigned short
      Returns:
      Stack allocated object of PxConstraintFlags
    • createAt

      public static <T> PxConstraintFlags createAt(T allocator, NativeObject.Allocator<T> allocate, short flags)
      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.
      flags - WebIDL type: unsigned short
      Returns:
      Stack allocated object of PxConstraintFlags
    • destroy

      public void destroy()
    • isSet

      public boolean isSet(PxConstraintFlagEnum flag)
      Parameters:
      flag - WebIDL type: PxConstraintFlagEnum [enum]
      Returns:
      WebIDL type: boolean
    • raise

      public void raise(PxConstraintFlagEnum flag)
      Parameters:
      flag - WebIDL type: PxConstraintFlagEnum [enum]
    • clear

      public void clear(PxConstraintFlagEnum flag)
      Parameters:
      flag - WebIDL type: PxConstraintFlagEnum [enum]