public void setWorldTransform(Transform centerOfMassWorldTrans) { graphicsWorldTrans.set(centerOfMassWorldTrans); graphicsWorldTrans.mul(centerOfMassOffset); graphicsWorldTrans.getRotation(qTmp); if (carMotion != null) carMotion.rootTransform.set(graphicsWorldTrans); }
public Transform getWorldTransform(Transform out) { out.inverse(centerOfMassOffset); out.mul(graphicsWorldTrans); return out; }