Class PxGpuParticleSystem

java.lang.Object
physx.NativeObject
physx.particles.PxGpuParticleSystem

public class PxGpuParticleSystem extends NativeObject
Container class for a GPU particle system. Used to communicate particle system parameters and simulation state between the internal SDK simulation and the particle system callbacks.

See #PxPBDParticleSystem, #PxParticleSystemCallback.

  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxGpuParticleSystem

      protected PxGpuParticleSystem()
    • PxGpuParticleSystem

      protected PxGpuParticleSystem(long address)
  • Method Details

    • wrapPointer

      public static PxGpuParticleSystem wrapPointer(long address)
    • arrayGet

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

      public void destroy()
    • getMUnsortedPhaseArray

      public PxU32Ptr getMUnsortedPhaseArray()
      GPU pointer to unsorted particle phase array. See #PxParticlePhaseFlag.
    • setMUnsortedPhaseArray

      public void setMUnsortedPhaseArray(PxU32Ptr value)
      GPU pointer to unsorted particle phase array. See #PxParticlePhaseFlag.
    • getMSortedPhaseArray

      public PxU32Ptr getMSortedPhaseArray()
      GPU pointer to sorted particle phase array
    • setMSortedPhaseArray

      public void setMSortedPhaseArray(PxU32Ptr value)
      GPU pointer to sorted particle phase array
    • getMUnsortedToSortedMapping

      public PxU32Ptr getMUnsortedToSortedMapping()
      GPU pointer to the mapping from unsortedParticle ID to sorted particle ID
    • setMUnsortedToSortedMapping

      public void setMUnsortedToSortedMapping(PxU32Ptr value)
      GPU pointer to the mapping from unsortedParticle ID to sorted particle ID
    • getMSortedToUnsortedMapping

      public PxU32Ptr getMSortedToUnsortedMapping()
      GPU pointer to the mapping from sorted particle ID to unsorted particle ID
    • setMSortedToUnsortedMapping

      public void setMSortedToUnsortedMapping(PxU32Ptr value)
      GPU pointer to the mapping from sorted particle ID to unsorted particle ID
    • getMParticleSelfCollisionCount

      public PxU32Ptr getMParticleSelfCollisionCount()
      Per-particle neighborhood count
    • setMParticleSelfCollisionCount

      public void setMParticleSelfCollisionCount(PxU32Ptr value)
      Per-particle neighborhood count
    • getMCollisionIndex

      public PxU32Ptr getMCollisionIndex()
      Set of sorted particle indices per neighbor
    • setMCollisionIndex

      public void setMCollisionIndex(PxU32Ptr value)
      Set of sorted particle indices per neighbor
    • getNumCells

      public int getNumCells()
      Returns the number of cells of the background simulation grid.
      Returns:
      PxU32 the number of cells.