Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

How to retarget animation? (Changing final position)

Discussion in 'Animation' started by ammar26, Sep 8, 2013.

  1. ammar26

    ammar26

    Joined:
    Jun 5, 2011
    Posts:
    29
    I'm working on a simple game in which a missile hits different objects (through animation). I created an animation using "Animation" window and applied on the missile but it only works for one specific object (for which I initially build the animation), there are more then 100 objects which missile can hit. I can't create 100+ animations for the missile (for each object it hits in the game)

    Is there is a way in which I can change the final target position in animation ? (may be able to change the frame values) Or I have to create animation manually by script ?

    The following image contain the top view as example of 3D game, different animation paths are below how I can use same animation clip for different animation paths ? or how I can change it ? Can anyone tell me good solution for handling same type of animations but on different points and paths?

    $Untitled.png
     
  2. Purpleshine84

    Purpleshine84

    Joined:
    Apr 8, 2013
    Posts:
    194
    Did you try meshAgent?
     
  3. ammar26

    ammar26

    Joined:
    Jun 5, 2011
    Posts:
    29
    I can't use mesh agent because objects will be generated on runtime in the game