Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by john-essy · Jun 10, 2016 at 12:22 AM · animationanimatoranimating

Animating an absolute position?

Hey,

I was wandering if it is possible to animate an object to an absolute position?

My current situation is, i have 2 blocks, block one will animate into a blank position in block 2, I do this by taking block ones position, rotation etc and matching this to block 2.

But with us constantly testing / tweaking we are breaking this everytime we change a single position. I would like to animate my block one to go to block 2 position and rotation i set everytime no matter where block 2 is in world space?

Any ideas ?

Thanks

John

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image john-essy · Jun 11, 2016 at 12:30 AM 0
Share

Anyone got any ideas?

avatar image ownerfate · Jun 11, 2016 at 01:22 AM 0
Share

question, you want it to snap into spot correct?

avatar image john-essy · Jun 12, 2016 at 06:38 PM 0
Share

Hey mate, Yea thats it. I need to animate it to a position that could change anytime but the position would be relative to another object.

avatar image ownerfate john-essy · Jun 12, 2016 at 07:10 PM 0
Share

ah, alrighty, you could do it like this, and this is only an idea, i use this type of script if i want to keep my player in 1 spot for a short while until the event is over.

before i post, i'll tell you how it works, and from there i'll see if it's something you might find useful.

you can leave feedback also, how you would have it function in more detail.

how the script works:

when the object the script is on is, Inactive the player will move about anywhere, but when the object is active, the player will snap instantly to the object and be facing which ever direction the object with the snap script is facing, when the event is over, it is deactivated and the player can move around again.

find an empty game object, or just something you want the item to snap to.

add script and either have it programmed via the method you're wanting.

$$anonymous$$e works via the Update() function but is inactive until called.

this script really isn't an animation per say, but you could post variables that could be called via animation. ( comes in handy with certain cases )

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by IvovdMarel · Jun 12, 2016 at 09:26 PM

Hi John,

I recommend using a tween engine such as DOTween (my favourite and it's free!) or iTween. Very easy to customize and tweak through code or the inspector.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

86 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Animate an Object by letting it play out in when I press play? 0 Answers

I have dozens of enemies that are simply recolors of eachother. Is there a faster way of animating them than having to make new animation clips for every single one? 1 Answer

Animating multiple objects that should interact with eachother 0 Answers

2D Animation does not start 1 Answer

Gameobject does not leave TPose in Playmode 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges