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.

change origin for cloned object

Home Forums General Questions change origin for cloned object

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #72165
    Lee
    Customer

    Is there a way for changing the origin of the object which is clonned in the puzzle dynamically?

    Imaging you have an object of a curtain with the animation and it shrinks and expands by changing its scale from its own origin(top left side corner).

    And when you have a clonned object for it, it is supposed to shrinks and expands as well but from the symmetry origin(top right side corner) so that it scales from it as we expect to see the two curtains open to the left and right side each.

    I couldn’t find any relevant puzzle for handing origins.
    Anyone has tips for this issue?

    #72166
    kdv
    Participant

    changing the origin of the object

    it’s possible in three.js, but you’ll have to manipulate an object’s geometry via JS (translate, rotate or scale).

    in your case just try to change scale to -1. this will mirror an object along the chosen axis. and one more thing: using standard puzzles won’t allow you to clone objects with animations. cloned objects will be static meshes.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #72186
    Lee
    Customer

    You are a GURU of Verge3D, Kdv.
    Thanks for giving us great solution as always.

    I will get cloned objects applied the animation again then.
    What a nice tip!

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