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