java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleRigidBodyParams
The properties of the rigid body.
-
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 PxVehicleRigidBodyParamsarrayGet(long baseAddress, int index) voiddestroy()floatgetMass()The mass of the rigid body.getMoi()The moment of inertia of the rigid body.booleanisValid()voidsetMass(float value) The mass of the rigid body.voidThe moment of inertia of the rigid body.transformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale) static PxVehicleRigidBodyParamswrapPointer(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
-
PxVehicleRigidBodyParams
protected PxVehicleRigidBodyParams(long address) -
PxVehicleRigidBodyParams
public PxVehicleRigidBodyParams()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getMass
public float getMass()The mass of the rigid body.Range: (0, inf)
Unit: mass -
setMass
public void setMass(float value) The mass of the rigid body.Range: (0, inf)
Unit: mass -
getMoi
The moment of inertia of the rigid body.Range: (0, inf)
Unit: mass * (length^2) -
setMoi
The moment of inertia of the rigid body.Range: (0, inf)
Unit: mass * (length^2) -
transformAndScale
public PxVehicleRigidBodyParams transformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale) - Parameters:
srcFrame- WebIDL type:PxVehicleFrame[Const, Ref]trgFrame- WebIDL type:PxVehicleFrame[Const, Ref]srcScale- WebIDL type:PxVehicleScale[Const, Ref]trgScale- WebIDL type:PxVehicleScale[Const, Ref]- Returns:
- WebIDL type:
PxVehicleRigidBodyParams[Value]
-
isValid
public boolean isValid()- Returns:
- WebIDL type: boolean
-