- 2019-05-06 at 1:28 pm #14461kenhennenLicensee
I have a case where multiple objects need to be placed on the surface of a sphere. For the randomized version, I can place them at the origin, give random rotation, and then do local offset by the radius. But when I need to place the objects at specific coordinates, I need to rotate them properly, so they face outward.
I understand that, since I have the vector for the Z direction, there should be a way to set the object rotation properly. However, I cannot find anything about the rotation matrix in the puzzles, or any matrix transforms; same with the lookAt.
I was hoping to use the Farmer’s Journey for reference and was surprised to find out the objects are spawned based on hundreds of pre-placed locators. Sadly, even this solution will not work for me.
So if one was to place buildings on the spherical planet surface, how would on rotate them all facing up using Puzzles?
- This topic was modified 10 months, 4 weeks ago by kenhennen.
www.alsber.com2019-05-06 at 2:54 pm #14464Yuri KovelenovDeveloper
You must be logged in to reply to this topic.