Пример #1
0
    private void SetDirection(object[] args)
    {
        Vector2 d = (Vector2)args[0];

        direction = d.Normalized();
        if (d.x != 0.0f || d.y != 0.0f)
        {
            body.LookAt(body.GetTranslation() + new Vector3(direction.x, 0, direction.y) * 100.0f, new Vector3(0, 1, 0));
        }
    }