Forum Discussion
markfrancombe
10 years agoHonored Guest
Problem with OVR Player Controller
Hi!
Not sure what has happened, but I was simly droppping the OVR Player Controller into my scene and it worked right outta the box. INCLUDING, pysics (I have doors with unity hinge joints, it could open them)
But now, although it does bump into colliders, it wont push anything...
BUT then I notice, in the console.. all this...
Im 99% certain it wasnt there before... I have reimported the asset to see if it did anything...nope... can some programmery person tell me what its missing here?
Not sure what has happened, but I was simly droppping the OVR Player Controller into my scene and it worked right outta the box. INCLUDING, pysics (I have doors with unity hinge joints, it could open them)
But now, although it does bump into colliders, it wont push anything...
BUT then I notice, in the console.. all this...
Im 99% certain it wasnt there before... I have reimported the asset to see if it did anything...nope... can some programmery person tell me what its missing here?
12 Replies
Replies have been turned off for this discussion
- delphinius81Rising StarDo you have an OVRManager anywhere in your scene? A lot of the OVR* scripts expect that there is an OVRManager to reference. In fact, the error that shows up is on a function call to OVRManager, so most likely that is the problem.
- VRisingHonored GuestCan you tell me what folder the OVR Player controller is in?
- delphinius81Rising StarOVR/Prefabs/OVRPlayerController.prefab
- vrdavebOculus StaffLooks like @delphinius81 is right - you need to add an OVRManager.cs to your scene. You can just drag it onto the same GameObject as your OVRCameraRig or use one of the prefabs. Unfortunately, the error checking in OVRCameraRig isn't great. In the future we'll make this easier to figure out or avoid.
- markfrancombeHonored GuestChecked! Yes OVRManager IS in the scene. it was already attached to the OVRCamerRig
- markfrancombeHonored GuestOK, figured out the errors. MY BAD!
I was first working on PC with oculus runtime installed.. no errors, but had switch to a mac for the modelling... i guess OVR stuff needs the runtime/sdk installed cos when I installed the Legacy runtime onto the mac the errors went away.
Final question however, is why physics isnt working. Again.. im not 100% sure it ever did, but I think so... - vrdavebOculus Staff> physics isnt working.
OVRPlayerController is just a script layered on top of Unity's normal character controller. That doesn't respond to physics. You can add a Rigidbody (mark it kinematic!) to have it affect other Rigidbody components in the world. - markfrancombeHonored GuestHi,
Thanks, but, yes, and thats exactly what I have done. I even compared with the Unity Character Controller (the NON rigid body one) I added rigid body to both OVRPlayerController and the Unity standard assets Char Controller . The Unity one opens doors and pushes spheres around, the Oculus one does not... just dont get it!
M - vrdavebOculus StaffMake sure the Rigidbody is on the same GameObject as the Capsule Collider and is marked kinematic.
- markfrancombeHonored GuestWe are talking about the OVRPlayerController right? There is no capsule collider. (I tried adding one, incase you I misunderstood earlier and meant to add one with the rigid body, but it didnt help)
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
- 3 years ago
- 7 months ago
- 7 months ago
- 2 years ago