Class PxHeightFieldGeometry

java.lang.Object
physx.NativeObject
physx.geometry.PxGeometry
physx.geometry.PxHeightFieldGeometry

public class PxHeightFieldGeometry extends PxGeometry
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxHeightFieldGeometry

      protected PxHeightFieldGeometry(long address)
    • PxHeightFieldGeometry

      public PxHeightFieldGeometry()
    • PxHeightFieldGeometry

      public PxHeightFieldGeometry(PxHeightField hf, PxMeshGeometryFlags flags, float heightScale, float rowScale, float columnScale)
      Parameters:
      hf - WebIDL type: PxHeightField
      flags - WebIDL type: PxMeshGeometryFlags [Ref]
      heightScale - WebIDL type: float
      rowScale - WebIDL type: float
      columnScale - WebIDL type: float
  • Method Details

    • wrapPointer

      public static PxHeightFieldGeometry wrapPointer(long address)
    • arrayGet

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

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

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

      public static PxHeightFieldGeometry createAt(long address, PxHeightField hf, PxMeshGeometryFlags flags, float heightScale, float rowScale, float columnScale)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      hf - WebIDL type: PxHeightField
      flags - WebIDL type: PxMeshGeometryFlags [Ref]
      heightScale - WebIDL type: float
      rowScale - WebIDL type: float
      columnScale - WebIDL type: float
      Returns:
      Stack allocated object of PxHeightFieldGeometry
    • createAt

      public static <T> PxHeightFieldGeometry createAt(T allocator, NativeObject.Allocator<T> allocate, PxHeightField hf, PxMeshGeometryFlags flags, float heightScale, float rowScale, float columnScale)
      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.
      hf - WebIDL type: PxHeightField
      flags - WebIDL type: PxMeshGeometryFlags [Ref]
      heightScale - WebIDL type: float
      rowScale - WebIDL type: float
      columnScale - WebIDL type: float
      Returns:
      Stack allocated object of PxHeightFieldGeometry
    • destroy

      public void destroy()
      Overrides:
      destroy in class PxGeometry
    • getHeightField

      public PxHeightField getHeightField()
      Returns:
      WebIDL type: PxHeightField
    • setHeightField

      public void setHeightField(PxHeightField value)
      Parameters:
      value - WebIDL type: PxHeightField
    • getHeightScale

      public float getHeightScale()
      Returns:
      WebIDL type: float
    • setHeightScale

      public void setHeightScale(float value)
      Parameters:
      value - WebIDL type: float
    • getRowScale

      public float getRowScale()
      Returns:
      WebIDL type: float
    • setRowScale

      public void setRowScale(float value)
      Parameters:
      value - WebIDL type: float
    • getColumnScale

      public float getColumnScale()
      Returns:
      WebIDL type: float
    • setColumnScale

      public void setColumnScale(float value)
      Parameters:
      value - WebIDL type: float
    • getHeightFieldFlags

      public PxMeshGeometryFlags getHeightFieldFlags()
      Returns:
      WebIDL type: PxMeshGeometryFlags [Value]
    • setHeightFieldFlags

      public void setHeightFieldFlags(PxMeshGeometryFlags value)
      Parameters:
      value - WebIDL type: PxMeshGeometryFlags [Value]
    • isValid

      public boolean isValid()
      Returns:
      WebIDL type: boolean