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