java.lang.Object
physx.NativeObject
physx.extensions.PxMassProperties
-
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
ConstructorsModifierConstructorDescriptionPxMassProperties(float m, PxMat33 inertiaT, PxVec3 com) protectedPxMassProperties(long address) PxMassProperties(PxGeometry geometry) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxMassPropertiesarrayGet(long baseAddress, int index) voiddestroy()floatgetMass()static PxVec3getMassSpaceInertia(PxMat33 inertia, PxQuat massFrame) static PxMat33rotateInertia(PxMat33 inertia, PxQuat q) static PxMat33scaleInertia(PxMat33 inertia, PxQuat scaleRotation, PxVec3 scale) voidsetCenterOfMass(PxVec3 value) voidsetInertiaTensor(PxMat33 value) voidsetMass(float value) static PxMassPropertiessum(PxMassProperties props, PxTransform transforms, int count) voidstatic PxMat33translateInertia(PxMat33 inertia, float mass, PxVec3 t) static PxMassPropertieswrapPointer(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
-
PxMassProperties
protected PxMassProperties(long address) -
PxMassProperties
public PxMassProperties() -
PxMassProperties
-
PxMassProperties
- Parameters:
geometry- WebIDL type:PxGeometry[Const, Ref]
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getInertiaTensor
- Returns:
- WebIDL type:
PxMat33[Value]
-
setInertiaTensor
- Parameters:
value- WebIDL type:PxMat33[Value]
-
getCenterOfMass
- Returns:
- WebIDL type:
PxVec3[Value]
-
setCenterOfMass
- Parameters:
value- WebIDL type:PxVec3[Value]
-
getMass
public float getMass()- Returns:
- WebIDL type: float
-
setMass
public void setMass(float value) - Parameters:
value- WebIDL type: float
-
translate
- Parameters:
t- WebIDL type:PxVec3[Const, Ref]
-
getMassSpaceInertia
-
translateInertia
-
rotateInertia
-
scaleInertia
-
sum
- Parameters:
props- WebIDL type:PxMassProperties[Const]transforms- WebIDL type:PxTransform[Const]count- WebIDL type: unsigned long- Returns:
- WebIDL type:
PxMassProperties[Value]
-