boolean physicsLocationDirty = applyTransform(motionStateId, localLocation, localRotationQuat);
if (!physicsLocationDirty) {
return false;
}
if (!applyPhysicsLocal && spatial.getParent() != null) {
localLocation.subtractLocal(spatial.getParent().getWorldTranslation());
localLocation.divideLocal(spatial.getParent().getWorldScale());
tmp_inverseWorldRotation.set(spatial.getParent().getWorldRotation()).inverseLocal().multLocal(localLocation);
// localRotationQuat.set(worldRotationQuat);
tmp_inverseWorldRotation.mult(localRotationQuat, localRotationQuat);