public bool ReadPositionAndOrientation(ref MyMwcPositionAndOrientation positionAndOrientation)
 {
     return(ReadVector3(ref positionAndOrientation.Position) &&
            ReadVector3(ref positionAndOrientation.Forward) &&
            ReadVector3(ref positionAndOrientation.Up));
 }
Beispiel #2
0
 public void WritePositionAndOrientation(MyMwcPositionAndOrientation positionAndOrientation)
 {
     WriteVector3(positionAndOrientation.Position);
     WriteVector3(positionAndOrientation.Forward);
     WriteVector3(positionAndOrientation.Up);
 }
 public static void WritePositionAndOrientation(MyMwcPositionAndOrientation positionAndOrientation, BinaryWriter binaryWriter)
 {
     WriteVector3(positionAndOrientation.Position, binaryWriter);
     WriteVector3(positionAndOrientation.Forward, binaryWriter);
     WriteVector3(positionAndOrientation.Up, binaryWriter);
 }