Forum Discussion
standtall007
11 years agoProtege
Is there an "Axis" that head tracking is responding to?
I mean like "Mouse X" Axis that comes with any new Unity Project??? It's because i have made a little script that makes the player character move in the direction the player camera looks at... it may sound a little confusing but i am very tired and i am honestly trying my best :) but is it possible to make the character move in the direction the camera looks at using the native OVR scripts that come with the SDK? Thanks in advance :)
Cheers.
P.S: i forgot to write the code :P
Cheers.
P.S: i forgot to write the code :P
public Transform target;
public float inputRotationSpeed = 100f;
void Update ()
{
float axisX = Input.GetAxis ("Mouse X") * inputRotationSpeed * Time.deltaTime;
target.Rotate (Vector3.up, axisX);
}
2 Replies
Replies have been turned off for this discussion
- moltonExplorerthere is. You have to use GetOrientation or GetPredictedOrintation in 0.25 or GetCameraPositionOrientation in 0.32
http://docs.ros.org/hydro/api/oculus_sdk/html/classOVR_1_1SensorFusion.html - standtall007ProtegeThank you very much for your help molton :) i kinda figured out that there had to be more than just what i have written ;) But thanks very much ;)
Cheers.
EDIT. I accidentally wrote milton instead of molton, that is because of the stupid mac i'm using with the text completion or whatever it's called :P
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago