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; } } }
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); } }
public bool DoMove(MoveParams data) { throw new NotImplementedException(); }