Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Mickman's avatar
Mickman
Protege
12 years ago

Adjust Positional Tracking (zoom in/out)

Wondering how's it possible to increase the zoom as a player moves in/out with the DK2 ?

The game I'm developing requires closer distance as the player leans in to view an object.

2 Replies

Replies have been turned off for this discussion
  • Gerald's avatar
    Gerald
    Expert Protege
    do you want to increase only on the Z-axis? then put the cam controller onto an object and move the object in global space on Z just as the eye cams moves in it's local space on Z.
    if you want to increase in all axis, then you could just double the scale of the cam controller and half the IPD to compensate for the doubling (so that the scale still is correct).
  • To make an object appear bigger, you could move the OVRCameraRig closer to it and/or reduce Transform.localScale on the OVRCameraRig.