Follow orientation, no longer available?

Hi there,

Back in 0.4.2 there where more params to tweak in the inspector than there are in 0.4.4 WT*. There was a pretty handy one that did allow to follow orientation witch was handy with stuff mounted on a car or any kind of vehicle.

It seems no longer available right?

I noticed that too. It does however appear now to default to follow view on the object it’s attached to. My boat sim with the onboard camera works the same in the version without the follow option as it did in the version with the option. Maybe somebody who knows more about it can explain the details.

In other words, it appears to “follow view” automatically and lock to the object the camera rig is attached to rather than having to drag an object into a follow view slot.

If you need to change it you could just use Transform.parent, probably.

Thanks!. You’re right.

Please, Pulov, Can you paste your code to follow a car when the player wants to change into foot and use the car? I tried to do the instructions of a tutorial of the unity but NOT work with Oculus, so, with OVRPlayerController and OVRCameraRig (SDK 0.4.4)?

I don’t find this information anywhere :-(((

Thank you very much in advance

Grettings

I did not modify the unity integration package from oculus.
You could try to make the camera a child of the vehicle when it enters the card, doing so should follow the car orientation.

Or whe entering the car, make an script that binds the transform rotation of the car to teh camera rig rotation.

Thanks for you answer. I forgot to say that I am newbie with Unity3D.

I tried this in my C# Script:

public GameObject OVRCameraRig_Principal;

OVRCameraRig_Principal = GameObject.Find (“OVRCameraRig_Principal”);

OVRCameraRig_Principal.parent = swlandspeederobj.transform; → This not work, Unity says: GameObject does not contain a definition for parent.

I tried use: Object, OVRCameraRig and does not work

Can you help me, please ?

Thanks a lot in advance.

Grettings

Hi.

I’m much more on teh artist side than the coding side.
This could help.

Hello,

Thank you very much but I had already read that article. The camera goes shoots back, like a rocket.

I will continue investigating. Thank you very much for your help.