Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Hello, I'm new to Unity. Need help creating a trigger for cube rotation.

Discussion in 'Getting Started' started by carlosbello1984, Feb 28, 2024.

  1. carlosbello1984

    carlosbello1984

    Joined:
    Feb 21, 2024
    Posts:
    2
    Hi everyone, I'm learning Unity and I want to create an animation for a cube using a trigger. I want the cube's rotation animation to be activated when my character enters the trigger area.

    1. I was able to create the trigger and the trigger area and move it close to the cube.
    2. I managed to create the cube animation within the Animation window.
    3. In the Animator window, three boxes were created: (from top to bottom) Any State, Entry, and Animation1 (Animation1 is the name I gave to the animation within the Animation window).

    I want to know how I can add/sync that animation to the trigger without needing to use C# if possible.

    Thanks in advance.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    39,021
    Get busy with any one of the ten billion Youtube tutorials on animation and scripting.

    It's very visual and detail oriented and none of us is going to retype it all in this little tiny text box.

    Imphenzia: How Did I Learn To Make Games:



    The purpose of this forum is to assist people who are ready to learn by doing, and who are unafraid to get their hands dirty learning how to code, particularly in the context of Unity3D.

    This assumes you have at least written and studied some code and have run into some kind of issue.

    If you haven't even started yet, go check out some Youtube videos for whatever game design you have in mind. There are already many examples of the individual parts and concepts involved, as there is nothing truly new under the sun.

    If you just want someone to do it for you, you need go to one of these places:

    https://forum.unity.com/forums/commercial-job-offering.49/

    https://forum.unity.com/forums/non-commercial-collaboration.17/

    https://livehelp.unity.com/?keywords=&page=1&searchTypes=lessons

    Remember this is YOUR game, not ours. We have our own games we're working on.
     
    carlosbello1984 likes this.