Class PxMassProperties

java.lang.Object
physx.NativeObject
physx.extensions.PxMassProperties

public class PxMassProperties extends NativeObject
  • 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

      public PxMassProperties(float m, PxMat33 inertiaT, PxVec3 com)
      Parameters:
      m - WebIDL type: float
      inertiaT - WebIDL type: PxMat33 [Const, Ref]
      com - WebIDL type: PxVec3 [Const, Ref]
    • PxMassProperties

      public PxMassProperties(PxGeometry geometry)
      Parameters:
      geometry - WebIDL type: PxGeometry [Const, Ref]
  • Method Details

    • wrapPointer

      public static PxMassProperties wrapPointer(long address)
    • arrayGet

      public static PxMassProperties arrayGet(long baseAddress, int index)
    • destroy

      public void destroy()
    • getInertiaTensor

      public PxMat33 getInertiaTensor()
      Returns:
      WebIDL type: PxMat33 [Value]
    • setInertiaTensor

      public void setInertiaTensor(PxMat33 value)
      Parameters:
      value - WebIDL type: PxMat33 [Value]
    • getCenterOfMass

      public PxVec3 getCenterOfMass()
      Returns:
      WebIDL type: PxVec3 [Value]
    • setCenterOfMass

      public void setCenterOfMass(PxVec3 value)
      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

      public void translate(PxVec3 t)
      Parameters:
      t - WebIDL type: PxVec3 [Const, Ref]
    • getMassSpaceInertia

      public static PxVec3 getMassSpaceInertia(PxMat33 inertia, PxQuat massFrame)
      Parameters:
      inertia - WebIDL type: PxMat33 [Const, Ref]
      massFrame - WebIDL type: PxQuat [Ref]
      Returns:
      WebIDL type: PxVec3 [Value]
    • translateInertia

      public static PxMat33 translateInertia(PxMat33 inertia, float mass, PxVec3 t)
      Parameters:
      inertia - WebIDL type: PxMat33 [Const, Ref]
      mass - WebIDL type: float
      t - WebIDL type: PxVec3 [Const, Ref]
      Returns:
      WebIDL type: PxMat33 [Value]
    • rotateInertia

      public static PxMat33 rotateInertia(PxMat33 inertia, PxQuat q)
      Parameters:
      inertia - WebIDL type: PxMat33 [Const, Ref]
      q - WebIDL type: PxQuat [Const, Ref]
      Returns:
      WebIDL type: PxMat33 [Value]
    • scaleInertia

      public static PxMat33 scaleInertia(PxMat33 inertia, PxQuat scaleRotation, PxVec3 scale)
      Parameters:
      inertia - WebIDL type: PxMat33 [Const, Ref]
      scaleRotation - WebIDL type: PxQuat [Const, Ref]
      scale - WebIDL type: PxVec3 [Const, Ref]
      Returns:
      WebIDL type: PxMat33 [Value]
    • sum

      public static PxMassProperties sum(PxMassProperties props, PxTransform transforms, int count)
      Parameters:
      props - WebIDL type: PxMassProperties [Const]
      transforms - WebIDL type: PxTransform [Const]
      count - WebIDL type: unsigned long
      Returns:
      WebIDL type: PxMassProperties [Value]