Class PxConvexMeshGeometry


public class PxConvexMeshGeometry extends PxGeometry
Convex mesh geometry class.

This class unifies a convex mesh object with a scaling transform, and lets the combined object be used anywhere a PxGeometry is needed.

The scaling is a transform along arbitrary axes contained in the scale object. The vertices of the mesh in geometry (or shape) space is the PxMeshScale::toMat33() transform, multiplied by the vertex space vertices in the PxConvexMesh object.

  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxConvexMeshGeometry

      protected PxConvexMeshGeometry()
    • PxConvexMeshGeometry

      protected PxConvexMeshGeometry(long address)
    • PxConvexMeshGeometry

      public PxConvexMeshGeometry(PxConvexMesh mesh)
      Constructor. By default creates an empty object with a NULL mesh and identity scale.
      Parameters:
      mesh - Mesh pointer. May be NULL, though this will not make the object valid for shape construction. \
    • PxConvexMeshGeometry

      public PxConvexMeshGeometry(PxConvexMesh mesh, PxMeshScale scaling)
      Constructor. By default creates an empty object with a NULL mesh and identity scale.
      Parameters:
      mesh - Mesh pointer. May be NULL, though this will not make the object valid for shape construction.
      scaling - Scale factor. \
    • PxConvexMeshGeometry

      public PxConvexMeshGeometry(PxConvexMesh mesh, PxMeshScale scaling, PxConvexMeshGeometryFlags flags)
      Constructor. By default creates an empty object with a NULL mesh and identity scale.
      Parameters:
      mesh - Mesh pointer. May be NULL, though this will not make the object valid for shape construction.
      scaling - Scale factor.
      flags - Mesh flags. \
  • Method Details