Home Forums Puzzles rotation/direction

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #14461

    Hi there,

    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?

    Thank you!

    • This topic was modified 10 months, 4 weeks ago by Avatarkenhennen.


    Yuri KovelenovYuri Kovelenov


    We think matrix transforms is a too complex thing to be included in Puzzles at the moment. You can probably do some matrix math in JavaScript based on object names supplied from Puzzles. See more here

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.