Example #1
0
 public void sendUpdate(VehicleControl vehicle) {
   if (this.multiplayer) {
     ActorUpdate update =
         new ActorUpdate(
             this.clientMan.getId(),
             vehicle.getPhysicsLocation(),
             vehicle.getPhysicsRotationMatrix(),
             vehicle.getLinearVelocity(),
             vehicle.getAngularVelocity());
     this.clientMan.update(update);
   }
 }