Search Unity

Seesaw like effect

Discussion in 'Getting Started' started by plumsklo, Jun 30, 2017.

  1. plumsklo

    plumsklo

    Joined:
    Apr 21, 2017
    Posts:
    4
    Hey,

    i'd like to flip my object with a seesaw like structure.
    My idea was that i have a point on the seesaw on which the seesaw rotates and launches my object. The point would be a trigger and i use the OnTriggerEnter to start the rotation.

    What i'd like to do is that the trigger detects that my object entered it and starts the action. My thinking was that it's better because then the prefab of my seesaw has the script and will take care of everything else. But i guess it's not how it works. I think its because a collider is entering a trigger and not the other way around.

    What i do now is that i have a script in the object which should be flipped and i'm referencing the seesaws which get rotated when i touch the trigger. I have the feeling it's not a proper solution.

    Could someone nudge me into the right direction how to solve it properly?
    (I hope it's understandable and not too confusing what i worte :D)