0

I am trying to make a day night cycle in which Sun/Moon in front of the Camera and its grab able but only moves in orbit around the steam VR camera rig.

I am able to make that object grab able using VRTK (its a toolkit for vive) but how can i move it like as if it is orbiting the camera rig and dose not deviate from orbital path. I have no idea where to start it, honestly i have tried nothing because i do not know where to start it or how can i be able to do this help needed... thanks.

Programmer
  • 121,791
  • 22
  • 236
  • 328
Syed Anwar Fahim
  • 306
  • 5
  • 15

1 Answers1

2

You have several options if you search online, here is an example that could help you out.
And here are some more ideas.
Referenced from here.

Hristo
  • 1,805
  • 12
  • 21
  • i don't want to animate it of some sort, i want to move it in to a circular motion with my controller as if it moves in (HTC vive) controllers movement direction – Syed Anwar Fahim May 19 '17 at 06:15
  • Nobody said you have to animate anything, if you follow my first link you can see that you can make a specific trajectory with splines, next you just have to move your sun/moon only on that slpine – Hristo May 19 '17 at 06:37
  • doesn't matter how you move it, could be with a controller, or mouse, or script, or animation, or force – Hristo May 19 '17 at 06:38