Beispiel #1
0
 /// <summary>
 /// "Forward" synchronize the transform when e.g., the game object
 /// has been moved in the editor.
 /// </summary>
 protected virtual void SyncNativeTransform()
 {
     // Automatic synchronization if we have a parent.
     if (m_geometry != null && m_geometry.getRigidBody() == null)
     {
         m_geometry.setLocalTransform(new agx.AffineMatrix4x4(transform.rotation.ToHandedQuat(), transform.position.ToHandedVec3()));
     }
 }