Jump to content
Search Community

Mahmood

Members
  • Posts

    3
  • Joined

  • Last visited

Mahmood's Achievements

  1. Thank you everyone for helping me with this. OSUblake, I'm really grateful, your code worked perfectly and now the camera movement is smooth and awesome. And thank you for the tip on the map function, didn't know that.
  2. Thank you so much for the quick reply Cassie. The sample you sent is great, however, I can't use this as I need to convert the rotation value from degrees to radians in order for the Three.js camera to work properly. Any idea on this?
  3. Hello everyone. I'm using GSAP to rotate a Three.js camera in my app. I have no problem if I want to go from 20 degrees rotation to 270 degrees. But if I want to go from 270 degrees to 20, I don't want the camera to go backwards, instead I prefer it starts from 270 going to 360 and then from 1 to 20. I already achieved this by making an array with all the numbers from 270>360 + 1>20 and then use this array on the onUpdate function to rotate the camera, however, this doesn't give me a smooth result. (I attached the code) Can anyone help me with a solution for this? Thank you.
×
×
  • Create New...