Ejemplo n.º 1
0
        public void _Update(float timeStep)
        {
            // read input from input driver
            Vector2 input = new Vector2(m_InputDriver.Horizontal, m_InputDriver.Vertical);

            Vector3 velocity = new Vector3(input.x, input.y, 0) * m_Movement.Speed;

            m_Motor.Move(velocity);
        }
        public void _Update(float timeStep)
        {
            Vector3 velocity = new Vector3(m_MovementInputBuffer.x, m_MovementInputBuffer.y, 0) * m_Movement.Speed;

            m_Motor.Move(velocity * timeStep);
        }