public BallState(BallInfo ballInfo) { if (ballInfo.Physics.HasValue) { PhysicsState = new PhysicsState(ballInfo.Physics.Value); } }
public CarState(PhysicsState physicsState = null, bool?jumped = null, bool?doubleJumped = null, float?boost = null) { PhysicsState = physicsState; Jumped = jumped; DoubleJumped = doubleJumped; Boost = boost; }
public CarState(PlayerInfo playerInfo) { if (playerInfo.Physics.HasValue) { PhysicsState = new PhysicsState(playerInfo.Physics.Value); } Jumped = playerInfo.Jumped; DoubleJumped = playerInfo.DoubleJumped; Boost = playerInfo.Boost; }
public BallState(PhysicsState physicsState = null) { PhysicsState = physicsState; }