We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

rotation/direction

Home Forums Puzzles rotation/direction

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

    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!

    ====================
    www.alsber.com

    #14464

    Hi,

    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 https://www.soft8soft.com/docs/manual/en/introduction/Using-JavaScript.html

    Chief 3D Verger | LinkedIn | Twitter

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.