コード例 #1
0
 public static void updateStateFromNetwork(this CarActor carActor, PacketReader reader)
 {
     // read values and apply to carActor:
     // position and orientation and velocity
     carActor.WorldTransform = reader.ReadMatrix();
     carActor.LinearVelocity = reader.ReadVector3();
     carActor.AngularVelocity = reader.ReadVector3();
 }