java.lang.Object
physx.NativeObject
physx.common.PxBase
physx.common.PxRefCounted
physx.physics.PxBaseMaterial
physx.physics.PxMaterial
-
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 PxMaterialarrayGet(long baseAddress, int index) floatgetFlags()floatfloatvoidsetDynamicFriction(float coef) voidsetFlag(PxMaterialFlagEnum flag, boolean b) voidsetFlags(PxMaterialFlags flags) voidsetFrictionCombineMode(PxCombineModeEnum combMode) voidsetRestitution(float coef) voidsetRestitutionCombineMode(PxCombineModeEnum combMode) voidsetStaticFriction(float coef) voidsetUserData(NativeObject value) static PxMaterialwrapPointer(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
-
PxMaterial
protected PxMaterial() -
PxMaterial
protected PxMaterial(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
getUserData
- Returns:
- WebIDL type: VoidPtr
-
setUserData
- Parameters:
value- WebIDL type: VoidPtr
-
setDynamicFriction
public void setDynamicFriction(float coef) - Parameters:
coef- WebIDL type: float
-
getDynamicFriction
public float getDynamicFriction()- Returns:
- WebIDL type: float
-
setStaticFriction
public void setStaticFriction(float coef) - Parameters:
coef- WebIDL type: float
-
getStaticFriction
public float getStaticFriction()- Returns:
- WebIDL type: float
-
setRestitution
public void setRestitution(float coef) - Parameters:
coef- WebIDL type: float
-
getRestitution
public float getRestitution()- Returns:
- WebIDL type: float
-
setFlag
- Parameters:
flag- WebIDL type:PxMaterialFlagEnum[enum]b- WebIDL type: boolean
-
setFlags
- Parameters:
flags- WebIDL type:PxMaterialFlags[Ref]
-
getFlags
- Returns:
- WebIDL type:
PxMaterialFlags[Value]
-
setFrictionCombineMode
- Parameters:
combMode- WebIDL type:PxCombineModeEnum[enum]
-
getFrictionCombineMode
- Returns:
- WebIDL type:
PxCombineModeEnum[enum]
-
setRestitutionCombineMode
- Parameters:
combMode- WebIDL type:PxCombineModeEnum[enum]
-
getRestitutionCombineMode
- Returns:
- WebIDL type:
PxCombineModeEnum[enum]
-