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.

How can I remove the third cube from the raycast list?

Home Forums General Questions How can I remove the third cube from the raycast list?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #59489
    Anil Kohli
    Customer

    Hello,
    I have the following problem:

    1) I have a 3D scene with e.g. 3 cubes.

    2) I want two of the cubes to perform actions when hoovering (raycast).

    3) The third cube should be ignored by the raycast, especially if it is in the way and prevents me from hovering cube 1 or 2.

    Question:
    How can I remove the third cube from the raycast list? Is it possible with the puzzles or do I need the “exec script” puzzle?
    If I need the “exec script” puzzle, can someone kindly give me the code?

    Thanks in advance
    Anil

    #59490
    kdv
    Participant

    show your puzzles. why did you add the third cube in the list of hovered objects?

    Puzzles and JS. 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 meaning at all.

    #59491
    Anil Kohli
    Customer

    The third cube is not included in the list for hovering objects, it is simply a part of the scene that is in the way of the raycast, which is why the back cube cannot be selected directly. The blue cube should not be visible to the raycast, so to speak.

    Attachments:
    You must be logged in to view attached files.
    #59493
    kdv
    Participant

    Puzzles and JS. 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 meaning at all.

    #59495
    Anil Kohli
    Customer

    Thank you so much, it works!!! :yahoo:

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