Class PxPBDMaterial


public class PxPBDMaterial extends PxParticleMaterial
Material class to represent a set of PBD particle material properties.
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxPBDMaterial

      protected PxPBDMaterial()
    • PxPBDMaterial

      protected PxPBDMaterial(long address)
  • Method Details

    • wrapPointer

      public static PxPBDMaterial wrapPointer(long address)
    • arrayGet

      public static PxPBDMaterial arrayGet(long baseAddress, int index)
    • setViscosity

      public void setViscosity(float viscosity)
      Sets viscosity
      Parameters:
      viscosity - Viscosity. Range: [0, PX_MAX_F32)
    • getViscosity

      public float getViscosity()
      Retrieves the viscosity value.
      Returns:
      The viscosity value.
    • setVorticityConfinement

      public void setVorticityConfinement(float vorticityConfinement)
      Sets material vorticity confinement coefficient
      Parameters:
      vorticityConfinement - Material vorticity confinement coefficient. Range: [0, PX_MAX_F32)
    • getVorticityConfinement

      public float getVorticityConfinement()
      Retrieves the vorticity confinement coefficient.
      Returns:
      The vorticity confinement coefficient.
    • setSurfaceTension

      public void setSurfaceTension(float surfaceTension)
      Sets material surface tension coefficient
      Parameters:
      surfaceTension - Material surface tension coefficient. Range: [0, PX_MAX_F32)
    • getSurfaceTension

      public float getSurfaceTension()
      Retrieves the surface tension coefficient.
      Returns:
      The surface tension coefficient.
    • setCohesion

      public void setCohesion(float cohesion)
      Sets material cohesion coefficient
      Parameters:
      cohesion - Material cohesion coefficient. Range: [0, PX_MAX_F32)
    • getCohesion

      public float getCohesion()
      Retrieves the cohesion coefficient.
      Returns:
      The cohesion coefficient.
    • setLift

      public void setLift(float lift)
      Sets material lift coefficient
      Parameters:
      lift - Material lift coefficient. Range: [0, PX_MAX_F32)
    • getLift

      public float getLift()
      Retrieves the lift coefficient.
      Returns:
      The lift coefficient.
    • setDrag

      public void setDrag(float drag)
      Sets material drag coefficient
      Parameters:
      drag - Material drag coefficient. Range: [0, PX_MAX_F32)
    • getDrag

      public float getDrag()
      Retrieves the drag coefficient.
      Returns:
      The drag coefficient.
    • setCFLCoefficient

      public void setCFLCoefficient(float coefficient)
      Sets the CFL coefficient.
      Parameters:
      coefficient - CFL coefficient. This coefficient scales the CFL term used to limit relative motion between fluid particles. Range: [1.f, PX_MAX_F32)
    • getCFLCoefficient

      public float getCFLCoefficient()
      Retrieves the CFL coefficient.
      Returns:
      The CFL coefficient.
    • setParticleFrictionScale

      public void setParticleFrictionScale(float scale)
      Sets material particle friction scale. This allows the application to scale up/down the frictional effect between particles independent of the friction coefficient, which also defines frictional behavior between the particle and rigid bodies/soft bodies/cloth etc.
      Parameters:
      scale - particle friction scale. Range: [0, PX_MAX_F32)
    • getParticleFrictionScale

      public float getParticleFrictionScale()
      Retrieves the particle friction scale.
      Returns:
      The particle friction scale.
    • setParticleAdhesionScale

      public void setParticleAdhesionScale(float adhesion)
      Sets material particle adhesion scale value. This is the adhesive value between particles defined as a scaled multiple of the adhesion parameter.
      Parameters:
      adhesion - particle adhesion scale value. Range: [0, PX_MAX_F32)
    • getParticleAdhesionScale

      public float getParticleAdhesionScale()
      Retrieves the particle adhesion scale value.
      Returns:
      The particle adhesion scale value.
    • getConcreteTypeName

      public String getConcreteTypeName()
      Description copied from class: PxBase
      Returns string name of dynamic type.
      Overrides:
      getConcreteTypeName in class PxBase
      Returns:
      WebIDL type: DOMString