• 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 mtompson.com · Mar 07, 2013 at 07:41 AM · rotationfbxlookatfollowbones

Bones [or something] to 'follow' or 'chase' each other!

Hi all, Ok, I'll try to explain what I want to do!

I have a set of linked (in 3ds max then exported via fbx) bones. I want the first bone to chase about using some ai (I'm using UnitySteer for now), but now comes my question...

Can I get the other bones to follow the first, curving about as if on a path, like a snake or missile trail?

There obviously is no path, as the ai is directing the first (parent) bone. But left along with no solution, the other bones obviously just follow in a stiff straight line behind thier leader.

Edit: After looking about at other people trying to do similar things, I need to add, these bones will end up deforming a mesh, so they have to be bones. Any solutions that won't work with bones are no good (I think?)

Any ideas would be great.. many thanks

Comment
Add comment · Show 7
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 Fattie · Mar 07, 2013 at 08:39 AM 0
Share

i really think you just have to carefully program that.

avatar image sparkzbarca · Mar 07, 2013 at 08:50 AM 0
Share

a little more info please. Do you want it like snake literally where each one literally copies the moves of the top (i.e. if it's 5 meters behind the front bone it should be where the bone was 5 meters ago?) Thats how the snake game works. each block aims to be well really each block just aims to be where the block in front of it is. That creates a chain and so each block EVENTUALLY do everythng the leader did is that what you want?

avatar image mtompson.com · Mar 08, 2013 at 09:32 AM 0
Share

Thanks guys. You may be right sparkzbarca, because the bones are linked, this may be a problem. Here is a simple pic to show the basic idea.

alt text

(The blue line just shows where it has been, its not a set path)

follow_bones.jpg (65.4 kB)
avatar image mtompson.com · Mar 08, 2013 at 09:48 AM 0
Share

I'm starting to think physics is the answer? Hinge Joint looks interesting, going to give that a try.

avatar image mtompson.com · Mar 08, 2013 at 10:06 AM 0
Share

Character Joint gives some interesting results...

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by mtompson.com · Mar 09, 2013 at 03:25 PM

I have it working! Imagine a little snake or worm.

  1. Skinned model from max, unlinked bones (haven't tried linked yet)

  2. Add RigidBody components to each bone (no gravity & 'Is Kinematic' = ticked for the first 'Head' bone)

  3. Add Hinge Joints to all but the head bone, link up.

  4. Move the head about, I'm using UnitySteer.

It looks a little crazy, I haven't got all my axis sorted out (Max & Unity) and if you add any animation it overrides the physics (some kind of ordering problem maybe). I can do secondary movement on each bone with script.

I am confident I can get the axis of everything correct, but it will take a fair bit of trail & error.

But basically a skinned model with bones, moving about using RigidBody & Joints!

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.

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

12 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

Related Questions

rotate gameobject 1 Answer

Camera following/looking at aircraft 1 Answer

Add rotation to LookAt (CarSmoothFollow) ? 1 Answer

Anima 2D Bone not rotating with mouse properly 0 Answers

LookAt Camera over 90 degree 1 Answer


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