Forum Discussion
TwistedPairDeve
6 years agoExplorer
Character Camera Constraint not working properly
In Unity for as long as I can remember there has always required a "Character Camera Constraint" component attached to the "OVRPlayerController" game object in order to keep the OVRPlayerController ga...
Dairedos
6 years agoHonored Guest
Found out fix. Just downloaded Oculus Integration asset v13.0 Had same issues, which I just fixed by rewriting "OVRPlayerController" script into older version. This version was missing major functions in script. You can distinguish between older and newer easily - by presence of 'Dynamic Height' checkbox (older).
I'm not able to post here link directly, so just type into google something like "Locomotion/Scripts/CharacterCameraConstraint.cs" and you will find a lot of older scripts on Github.
I'm not able to post here link directly, so just type into google something like "Locomotion/Scripts/CharacterCameraConstraint.cs" and you will find a lot of older scripts on Github.
- jaco_exe5 years agoHonored Guest
Is there any possibility to share the script?
Thanks!
-Jaco
- MrJocyf4 years agoHonored Guest
You can mix part of this code the the most recent version and use it with a CharacterController type of controller (you can be interested mostly in the "PreCharacterMovement()" function, so the chatanetrController follows the camera Rig checking collisions. It works pretty well.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device