Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Flu · Apr 05, 2010 at 01:22 PM · animationselectmousemove

Make a figure move by mouse + walkanimation

Hi. weve got the following problem. In school we are programming a 3D chess game. Now want to select the different pawns in our game an make them move to a new position. While their movement the figure should play an walk animation. That means the figure souldnt "jump" from one point to the other but it should walk while playing the walk animation. By now we dont have the knowledge how to do it.

We hope someone understands the problem and can help. Because my english isnt as good as it should be i have written the text in german, too ;)

Hi. Ich habe folgendes Problem. in der Schule programmieren wir zur zeit ein 3D Schachspiel. wir wollen nun die einzelnen Figuren mit der Maus anwhlen und diese dann zu einer neuen position bewegen knnen. bei dieser Bewegung soll eine Laufanimation abgespielt werden, d.h. sie soll nicht von der einen zur anderen position "springen", sondern laufen. leider haben wir keine Ahnung wie wir das anstellen sollen. Hoffe auf eine schnelle hilfe.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Alec-Slayden · Jul 18, 2011 at 11:56 PM

Consider using Smoothdamp, or Vector3.Lerp. These functions will allow you to interpolate between 2 points at a rate you specify, so your object will smoothly move to its destination.

Assuming you want this move action to take place as a separate function, you might need to use a while loop. just be sure to add yield in that loop, so the changes will be applied each frame.

All of the above assumes you have a fundamental understanding of scripting and basic unity editting like applying animations to objects, etc. If you don't, please consider asking separate specific questions to be resolved.

[3]: http://unity3d.com/support/documentation/ScriptReference/Animation.Play.html

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

1 Person is following this question.

avatar image

Related Questions

Can I make animations snap to a frame? 1 Answer

How to select keys in the animation editor? 1 Answer

Animation of throw spear 1 Answer

Move to different parts of an animation. 0 Answers

How to select an animation clip by index number? 7 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