Module groPhysics

Class PhysicsUtils

java.lang.Object
uk.ac.soton.grophysics.PhysicsUtils

public class PhysicsUtils extends Object
  • Constructor Details

    • PhysicsUtils

      public PhysicsUtils()
  • Method Details

    • offsetMatrix

      public Matrix4d offsetMatrix(Matrix4d in, Point3d offset)
      Offset the input matrix by the point offset
    • offsetMatrix

      public Matrix4d offsetMatrix(Matrix4d in, Vector3d offset)
      offset the input matrix by the vector offset
    • getMatrix4d

      public Matrix4d getMatrix4d(com.bulletphysics.linearmath.Transform transform)
      Utility to get a double matrix from a transform
    • getTranslation

      public Matrix4d getTranslation(Vector3d v)
      Utility to get a translation matrix from a vector
    • getDifference

      public Matrix4d getDifference(Matrix4d mNew, Matrix4d mOld)
      Utility to get the difference between two transforms By multiplying the inverse of the first by the second
    • showNodeInfo

      public void showNodeInfo(Node node)
      Display some info about a Node
      Parameters:
      node -