01-06-2019 04:17 PM
01-07-2019 11:12 PM
01-10-2019 12:20 PM
I do not see the Oculus folder under Assets.
This code allows me to use the arrow keys on my computer keyboard in Unity to move my player object, however, if I do a build an run to Oculus Go it does not work using the controller:
public class PlayerController : MonoBehaviour
{
public float speed;
private Rigidbody rb;
private void Start()
{
rb = GetComponent<Rigidbody>();
}
void FixedUpdate()
{
float moveHorizontal = Input.GetAxis("Horizontal");
float moveVertical = Input.GetAxis("Vertical");
Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
rb.AddForce(movement * speed);
}
}
thanks
01-24-2019 03:28 PM