java.lang.Object
physx.NativeObject
physx.common.PxBase
physx.common.PxRefCounted
physx.physics.PxBaseMaterial
physx.particles.PxParticleMaterial
- Direct Known Subclasses:
PxPBDMaterial
Material class to represent a set of particle material properties.
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxParticleMaterialarrayGet(long baseAddress, int index) floatRetrieves the adhesion termfloatRetrieves the adhesion radius scale.floatRetrieves the velocity damping termfloatRetrieves the friction value.floatRetrieves the gravity scale termvoidsetAdhesion(float adhesion) Sets adhesion termvoidsetAdhesionRadiusScale(float scale) Sets material adhesion radius scale.voidsetDamping(float damping) Sets velocity damping termvoidsetFriction(float friction) Sets frictionvoidsetGravityScale(float scale) Sets gravity scale termstatic PxParticleMaterialwrapPointer(long address) Methods inherited from class physx.physics.PxBaseMaterial
destroyMethods inherited from class physx.common.PxRefCounted
acquireReference, getReferenceCountMethods inherited from class physx.common.PxBase
getBaseFlags, getConcreteType, getConcreteTypeName, isReleasable, release, setBaseFlag, setBaseFlagsMethods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxParticleMaterial
protected PxParticleMaterial() -
PxParticleMaterial
protected PxParticleMaterial(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
setFriction
public void setFriction(float friction) Sets friction- Parameters:
friction- Friction. Range: [0, PX_MAX_F32)
-
getFriction
public float getFriction()Retrieves the friction value.- Returns:
- The friction value.
-
setDamping
public void setDamping(float damping) Sets velocity damping term- Parameters:
damping- Velocity damping term. Range: [0, PX_MAX_F32)
-
getDamping
public float getDamping()Retrieves the velocity damping term- Returns:
- The velocity damping term.
-
setAdhesion
public void setAdhesion(float adhesion) Sets adhesion term- Parameters:
adhesion- adhesion coefficient. Range: [0, PX_MAX_F32)
-
getAdhesion
public float getAdhesion()Retrieves the adhesion term- Returns:
- The adhesion term.
-
setGravityScale
public void setGravityScale(float scale) Sets gravity scale term- Parameters:
scale- gravity scale coefficient. Range: (-PX_MAX_F32, PX_MAX_F32)
-
getGravityScale
public float getGravityScale()Retrieves the gravity scale term- Returns:
- The gravity scale term.
-
setAdhesionRadiusScale
public void setAdhesionRadiusScale(float scale) Sets material adhesion radius scale. This is multiplied by the particle rest offset to compute the fall-off distance at which point adhesion ceases to operate.- Parameters:
scale- Material adhesion radius scale. Range: [0, PX_MAX_F32)
-
getAdhesionRadiusScale
public float getAdhesionRadiusScale()Retrieves the adhesion radius scale.- Returns:
- The adhesion radius scale.
-