Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 MrFraggy · Apr 15, 2014 at 12:53 PM · animationtransformpositionmodelanimated

Transform position in animated model

Hello guys!

I have an issue with Unity when using an animated 3D model.

I have a characted holding a wrench, and I want to emit some particles from the tip of it. Because the model has been animated in 3Ds max, I asked my 3D graphist to add a bone on the tip of the wrench so I can use it as the starting point in Unity.

The problem is, even if the transform is displayed correctly in the Scene viewer when the model plays an animation, I'm unable to get the real position of the point.

Here are two screenshots: alt text alt text

As you may see, the transform position and rotation in the inspector are not affected by the animation's movements (I know it's relative so it should not), nor is affected the Debug.Log(transform.position) output in the console (see the output count), but the scene editor seems to follow the point well.

Do anybody have a solution for this problem?

eww03.png (339.2 kB)
eww04.png (310.2 kB)
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 Griffo · Apr 15, 2014 at 01:01 PM 0
Share

Why don't you just emit the particles from the tip?

 var paticalEffect : Transform;
 var wrenchTip : Transform;
 
 Instantiate (paticalEffect, wrenchTip.position, Quaternion.identity);

Something like that, drag the wrench bone into the wrechTip var and the particle effect into the particalEffect var.

Just read your question again, do you not want to emit it from the tip of the wrench but at the position the wrench tip is ? Like on the nut it's tightening of the place it hits?

avatar image Eluate · Apr 15, 2014 at 01:06 PM 0
Share

You are unable to get the real position of the point because the parent of the wrench has the position.

The position of the wrench is relative to the parent.

avatar image MrFraggy · Apr 15, 2014 at 02:22 PM 0
Share

Thanks for your answers! I found the solution :)

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by MrFraggy · Apr 15, 2014 at 02:47 PM

Ok so there is the solution: the anchor point was not in the model's bones hierarchy. So I moved it inside the correct bone and now it works!

Still wondering why unity displayed the correct position...

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

22 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

Related Questions

In animations, is it possible to only add transform values instead of setting it? 2 Answers

the animation moves the model? 0 Answers

Play animation as the value changes from 0 to 1 with changing GameObject's position in unity 0 Answers

Getting imported animated object position 0 Answers

Walk/run animation moves main camera up and down (first person) 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