• 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 youngapprentice · Jan 12, 2013 at 07:55 PM · animationrigarmaturesway

Simple 'drag' on armature

Hi, all! In my game, I have a 'Probe' enemy. The model has been completed and it has been rigged. I thought an nice effect would be to have the legs 'sway' on a lag with the X axis movement of the probe. Is there a way to do this? Like, make the legs have drag? I'd like to do this through code.

Thanks!- YA

(Here are some images if you don't understand what I mean.)

alt text alt text

Comment
Add comment · Show 3
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 youngapprentice · Jan 13, 2013 at 05:42 PM 0
Share

Is there some way I could implement a 'smooth follow' on the bas joint and have the chain of legs interpolate and follow suit?

avatar image youngapprentice · Jan 15, 2013 at 12:12 PM 0
Share

Are there any possible 'armature constraints' in Unity that would allow me to do this? The way I look at it, I can either animate it myself, which would be difficult to implement AND look terrible, animate it by code, which would look good and be customizable, or find a constraint, which would be easiest but not customizable.

avatar image youngapprentice · Jan 17, 2013 at 12:12 AM 0
Share

No joy? :(

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by save · Jan 17, 2013 at 12:22 AM

Is it only on the x-axis? Most optimized way then is to have a "sway" left and right animation for the legs that you weigh differently depending on x-axis velocity. But this won't look amazing when your probe crashes into objects. Therefore to make limbs behave more like.. limbs, use a character joint and a rigidbody on each leg.

Comment
Add comment · Show 4 · 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
avatar image youngapprentice · Jan 17, 2013 at 12:44 AM 0
Share

The game is Galaga-like in nature, so, although the probes do move somewhat on the Z axis, main movement is on the X-Y axes, and it would be weird for the legs to fly upwards when it goes down :D

I will look into this and post results. Thanks!- YA

avatar image youngapprentice · Jan 17, 2013 at 01:36 AM 0
Share

Not working out :? I am not getting it to have any 'drag' whatsoever. Is it maybe because ins$$anonymous$$d of moving the parent rigidBody with force, I'm using iTween?

avatar image save · Jan 17, 2013 at 11:35 AM 0
Share

Ah, yes the character need to be moved with forces or you could try to have a rigidbody that is set to kinematic on the character.

avatar image youngapprentice · Jan 17, 2013 at 11:45 AM 0
Share

The rigidBody WAS set to is$$anonymous$$inematic. I'll play with it more later and see if I can find a workaround. Thanks!

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

9 People are following this question.

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

Related Questions

Help with making an animation play for X amount of seconds? 1 Answer

Error using humanoid rig, configure button opens blank menu 0 Answers

I can't setting at once ModelImporter.sourceAvatar in script. 1 Answer

Charecter Model falls halfway through ground when using rig 0 Answers

Modify animation performed by a character rigged in mixamo 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