Пример #1
0
        internal void Move(MoveParams mp)
        {
            mp.m_moverData = new SimMoverData()
            {
                CurrentPosition = m_position, Speed = m_speed
            };

            foreach (var loc in LocomotionModes)
            {
                if (loc.DoMove(mp))
                {
                    m_speed    = mp.m_moverData.Speed;
                    m_position = mp.m_moverData.CurrentPosition;
                }
            }
        }
Пример #2
0
        public void Upate(float delta)
        {
            var env = new FakeEnvironment();

            env.m_frameTime = delta;

            MoveParams mp = new MoveParams();

            mp.m_env = env;

            foreach (var b in m_birds)
            {
                m_debugToggle     = !m_debugToggle;
                env.m_fakeCollide = m_debugToggle;

                b.Move(mp);
            }
        }
Пример #3
0
 public bool DoMove(MoveParams data)
 {
     throw new NotImplementedException();
 }