Class Support

java.lang.Object
physx.NativeObject
physx.extensions.Support
Direct Known Subclasses:
BoxSupport, CapsuleSupport, ConvexGeomSupport, ConvexMeshSupport, CustomSupport, SphereSupport

public class Support extends NativeObject
Abstract interface for a user defined shape GJK mapping support. A user defined shape consists of a core shape and a margin. If the distance between two shapes' cores is equal to the sum of their margins, these shapes are considered touching.
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • Support

      protected Support()
    • Support

      protected Support(long address)
  • Method Details

    • wrapPointer

      public static Support wrapPointer(long address)
    • arrayGet

      public static Support arrayGet(long baseAddress, int index)
    • destroy

      public void destroy()
    • getMargin

      public float getMargin()
      Return the user defined shape margin. Margin should be greater than or equal to 0
      Returns:
      Margin.
    • supportLocal

      public PxVec3 supportLocal(PxVec3 dir)
      Return the farthest point on the user defined shape's core in given direction.
      Parameters:
      dir - Direction
      Returns:
      Farthest point in given direction.