Forum Discussion
gunair
13 years agoExplorer
From pedestrian to pilot - how change controller ingame?
Hello from Germany, I'm working on my little demo map and although I'm an absolute Unity beginner, I solved all problems so far. It's a lot fun to find the way to reach the goal... But now, I n...
gunair
13 years agoExplorer
I MADE IT!!
Thank you all!
Human's brain is a strange thing sometimes :D . After many days without ANY idea of solving the problem, it changes minutes after writing this thread! It was like "resetting my brain", through writing the problem down. The initial idea came up...the rest were some keywords in your threads, like "destroy player", "parenting", etc to show the right direction...
So, in the end, it was easier than I thought (isn't it always so, when you know how to do tings? ;) ). I have to add, that I have no idea of writing program code (c or javascript or so...). I'm using the amazing "PlayMaker" Plug-In. And here is, what I did:
- Basic was using the "normal" pedestrian,- the OVRPlayerController (incl. CameraController). Everything as usual. Besides, that I tagged it as "Player"
- At program start I set up two things:
Having my helicopter, complete with helicopterController script and an OVRCameraController as a heli "child" (camera correct positioned in relation to the heli). I DE-ACTIVATE it a the start. The heli (with the added pilot body) is not visible.
I placed a heli duplicate (without pilot body),-and without Controller and OVRCamera - , as a just visible clone at the exact heli position.
- Placed a trigger box, - which can only be activated by a "Player" tagged object - , around the heli cockpit area.
- When the trigger is activated, it does three things:
Destroy the "pedestrian" OVR PlayerController.
Deactivate the "visible" heli clone.
Activate the heli object, incl. HeliController script and (second) OVRCamera.
That's all!
Thank you again, for your help!
Greets from Germany
gunair
Thank you all!
Human's brain is a strange thing sometimes :D . After many days without ANY idea of solving the problem, it changes minutes after writing this thread! It was like "resetting my brain", through writing the problem down. The initial idea came up...the rest were some keywords in your threads, like "destroy player", "parenting", etc to show the right direction...
So, in the end, it was easier than I thought (isn't it always so, when you know how to do tings? ;) ). I have to add, that I have no idea of writing program code (c or javascript or so...). I'm using the amazing "PlayMaker" Plug-In. And here is, what I did:
- Basic was using the "normal" pedestrian,- the OVRPlayerController (incl. CameraController). Everything as usual. Besides, that I tagged it as "Player"
- At program start I set up two things:
Having my helicopter, complete with helicopterController script and an OVRCameraController as a heli "child" (camera correct positioned in relation to the heli). I DE-ACTIVATE it a the start. The heli (with the added pilot body) is not visible.
I placed a heli duplicate (without pilot body),-and without Controller and OVRCamera - , as a just visible clone at the exact heli position.
- Placed a trigger box, - which can only be activated by a "Player" tagged object - , around the heli cockpit area.
- When the trigger is activated, it does three things:
Destroy the "pedestrian" OVR PlayerController.
Deactivate the "visible" heli clone.
Activate the heli object, incl. HeliController script and (second) OVRCamera.
That's all!
Thank you again, for your help!
Greets from Germany
gunair
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
- 10 months ago