Beispiel #1
0
 /// <summary>
 /// "Back" synchronize of transforms given the simulation has
 /// updated the transforms.
 /// </summary>
 protected virtual void SyncUnityTransform()
 {
     if (m_geometry != null && m_transform.parent == null)
     {
         m_transform.SetPositionAndRotation(m_geometry.getPosition().ToHandedVector3(),
                                            m_geometry.getRotation().ToHandedQuaternion());
     }
 }