public static void ServerInitialize(MovingGameObject obj, Vector2 position, Vector2 velocity, float direction, float angularVelocity, float targetAngle)
 {
     CompositePhysicalObject.ServerInitialize(obj, position, direction);
     obj.velocity.Value = velocity;
     obj.angularSpeed.Value = angularVelocity;
     obj.targetAngle.Value = targetAngle;
 }
Пример #2
0
 public static void ServerInitialize(MovingGameObject obj, Vector2 position, Vector2 velocity, float direction, float angularVelocity, float targetAngle)
 {
     CompositePhysicalObject.ServerInitialize(obj, position, direction);
     obj.velocity.Value     = velocity;
     obj.angularSpeed.Value = angularVelocity;
     obj.targetAngle.Value  = targetAngle;
 }