コード例 #1
0
        public World()
        {
            Mesh = new Mesh(PointRobertsMarina, Length.FromMeters(1000));

            var current = new Current(Bearing.East, Velocity.FromMPH(2), this);

            var rudder = new Rudder(Angle.FromDegrees(45), AngularVelocity.FromDegreesPerSecond(90), Angle.FromDegrees(1));
            var boat   = new Boat(PointRobertsMarina, Velocity.FromMPH(25), Bearing.West, rudder);

            rudder.MoveTo(Angle.FromDegrees(22));

            boat.Autopilot.WayPoint = new Waypoint(Something);

            _fleetingthings.Add(current);
            _fleetingthings.Add(boat);
        }