Class PxParticleClothCooker

java.lang.Object
physx.NativeObject
physx.particles.PxParticleClothCooker

public class PxParticleClothCooker extends NativeObject
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxParticleClothCooker

      protected PxParticleClothCooker()
    • PxParticleClothCooker

      protected PxParticleClothCooker(long address)
  • Method Details

    • wrapPointer

      public static PxParticleClothCooker wrapPointer(long address)
    • arrayGet

      public static PxParticleClothCooker arrayGet(long baseAddress, int index)
    • release

      public void release()
    • cookConstraints

      public void cookConstraints()
      Generate the constraint list and triangle index list.
    • cookConstraints

      public void cookConstraints(PxParticleClothConstraint constraints)
      Generate the constraint list and triangle index list.
      Parameters:
      constraints - A pointer to an array of PxParticleClothConstraint constraints. If NULL, the cooker will generate all the constraints. Otherwise, the user-provided constraints will be added.
    • cookConstraints

      public void cookConstraints(PxParticleClothConstraint constraints, int numConstraints)
      Generate the constraint list and triangle index list.
      Parameters:
      constraints - A pointer to an array of PxParticleClothConstraint constraints. If NULL, the cooker will generate all the constraints. Otherwise, the user-provided constraints will be added.
      numConstraints - The number of user-provided PxParticleClothConstraint s.
    • getTriangleIndices

      public NativeObject getTriangleIndices()
      Returns:
      A pointer to the triangle indices.
    • getTriangleIndicesCount

      public int getTriangleIndicesCount()
      Returns:
      The number of triangle indices.
    • getConstraints

      public PxParticleClothConstraint getConstraints()
      Returns:
      A pointer to the PxParticleClothConstraint constraints.
    • getConstraintCount

      public int getConstraintCount()
      Returns:
      The number of constraints.
    • calculateMeshVolume

      public void calculateMeshVolume()
      Computes the volume of a closed mesh and the contraintScale. Expects vertices in local space - 'close' to origin.
    • getMeshVolume

      public float getMeshVolume()
      Returns:
      The mesh volume calculated by PxParticleClothCooker::calculateMeshVolume.