Example #1
0
    void Update()
    {
        shipMovement.AddShipForce(Input.GetAxis("Vertical"));
        shipMovement.AddRotationAngle(Input.GetAxis("Horizontal"));

        Ray        ray = cam.ScreenPointToRay(Input.mousePosition);
        RaycastHit hit;

        if (Physics.Raycast(ray, out hit))
        {
        }
    }