java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehiclePhysXMaterialFriction
A mapping between PxMaterial and a friction value to be used by the tire model.
- See Also:
-
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 TypeMethodDescriptionarrayGet(long baseAddress, int index) voiddestroy()floatA friction value that is to be mapped to a PxMaterial instance.A PxMaterial instance that is to be mapped to a friction value.booleanisValid()voidsetFriction(float value) A friction value that is to be mapped to a PxMaterial instance.voidsetMaterial(PxMaterial value) A PxMaterial instance that is to be mapped to a friction value.wrapPointer(long address) Methods 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
-
PxVehiclePhysXMaterialFriction
protected PxVehiclePhysXMaterialFriction(long address) -
PxVehiclePhysXMaterialFriction
public PxVehiclePhysXMaterialFriction()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getMaterial
A PxMaterial instance that is to be mapped to a friction value. -
setMaterial
A PxMaterial instance that is to be mapped to a friction value. -
getFriction
public float getFriction()A friction value that is to be mapped to a PxMaterial instance. Note: friction must have value greater than or equal to zero.Range: [0, inf)
-
setFriction
public void setFriction(float value) A friction value that is to be mapped to a PxMaterial instance. Note: friction must have value greater than or equal to zero.Range: [0, inf)
-
isValid
public boolean isValid()- Returns:
- WebIDL type: boolean
-