Class PxParticleClothDesc

java.lang.Object
physx.NativeObject
physx.particles.PxParticleClothDesc

public class PxParticleClothDesc extends NativeObject
Structure to describe the set of particle cloths in the same #PxParticleClothBuffer. Used an input for the cloth preprocessing.
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxParticleClothDesc

      protected PxParticleClothDesc(long address)
    • PxParticleClothDesc

      public PxParticleClothDesc()
  • Method Details

    • wrapPointer

      public static PxParticleClothDesc wrapPointer(long address)
    • arrayGet

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

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

      public static <T> PxParticleClothDesc 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 PxParticleClothDesc
    • destroy

      public void destroy()
    • getCloths

      public PxParticleCloth getCloths()
      List of PxParticleCloth s, describes the individual cloths.
    • setCloths

      public void setCloths(PxParticleCloth value)
      List of PxParticleCloth s, describes the individual cloths.
    • getTriangles

      public PxU32Ptr getTriangles()
      List of triangle indices, 3 consecutive PxU32 that map triangle vertices to particles
    • setTriangles

      public void setTriangles(PxU32Ptr value)
      List of triangle indices, 3 consecutive PxU32 that map triangle vertices to particles
    • getSprings

      public PxParticleSpring getSprings()
      List of PxParticleSpring s.
    • setSprings

      public void setSprings(PxParticleSpring value)
      List of PxParticleSpring s.
    • getRestPositions

      public PxVec4 getRestPositions()
      List of rest positions for all particles
    • setRestPositions

      public void setRestPositions(PxVec4 value)
      List of rest positions for all particles
    • getNbCloths

      public int getNbCloths()
      The number of cloths in described using this cloth descriptor
    • setNbCloths

      public void setNbCloths(int value)
      The number of cloths in described using this cloth descriptor
    • getNbSprings

      public int getNbSprings()
      The number of springs in this cloth descriptor
    • setNbSprings

      public void setNbSprings(int value)
      The number of springs in this cloth descriptor
    • getNbTriangles

      public int getNbTriangles()
      The number of triangles in this cloth descriptor
    • setNbTriangles

      public void setNbTriangles(int value)
      The number of triangles in this cloth descriptor
    • getNbParticles

      public int getNbParticles()
      The number of particles in this cloth descriptor
    • setNbParticles

      public void setNbParticles(int value)
      The number of particles in this cloth descriptor