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.

Clone Object

Home Forums Puzzles Clone Object

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7947
    Atomfreak
    Customer

    Hello, I’m trying to clone an object in my scene with the help of a button.
    But the problem I currently have is how I can give it the same logic as the original object. In fact the perfect example is a building game. There is an icon of a street in the menu and every time I press the street button, there is a road tile that appears.
    But according to the clone information, the object becomes unique. How can I give it a name so I can assign it the same parameters as my main object. In my case it is to be able to move and rotate the object.
    Thank you :unsure:

    #7948
    Atomfreak
    Customer

    Also I try to download this example source: http://localhost:8668/examples/index.html#webgl_interactive_voxelpainter

    But the download source button direct me to the blender Verge3D page.

    #7956

    Hi,

    You can use a variable to store a new object name and use it for further operations.

    Regarding the code examples, we moved them to a new location.
    https://cdn.soft8soft.com/demo/examples/index.html

    The view source buttons will updated with this new target in the upcoming release.

    Attachments:
    You must be logged in to view attached files.

    Chief 3D Verger | LinkedIn | Twitter

    #8137

    Answering here to the question how to apply the same functions to cloned objects. You can create a procedure that takes an object as parameter (and also some other parameters such as coordinates) and apply this procedure to cloned objects. This can be done individually or in bulk.

    Attachments:
    You must be logged in to view attached files.

    Chief 3D Verger | LinkedIn | Twitter

    #8139

    Here is the logic file:

    Attachments:
    You must be logged in to view attached files.

    Chief 3D Verger | LinkedIn | Twitter

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