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 James Diamond · Feb 24, 2011 at 07:55 PM · model

Why is my model jumping to position 0,0,0?

Whenever i run the program, the objects using this model (i know its a broken model, my rigger is still working on it) all jump to position 0,0,0. I dont know why and it doesnt give me any error messages. Also, the controls dont work.

The project can be downloaded here. Its a unity 3.1 project. http://www.megaupload.com/?d=B5QF76N0

Thanks in advance for any help.

EDIT: I uploaded the wrong project folder before. The new link is up...

Comment
Add comment · Show 2
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 Alec-Slayden · Feb 24, 2011 at 08:35 PM 0
Share

I downloaded the project. In it is a scene of a capsule that I can move across a floor, with walls on either side. The camera tracks this capsule, and the movement is fine.

There are no other scenes in this project file. Can you expand on what the problem is? at a glance things seem to be working to me

avatar image James Diamond · Feb 24, 2011 at 09:03 PM 0
Share

The project folder i uploaded was not the one i was having a problem with... I'm smart... the new link is up.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Bunny83 · Feb 24, 2011 at 09:43 PM

Your problem is that you added another Animation component to your character. The Animation component on the parent is the wrong one. You only need/should have the one on the child object "udon_animations". The animation on the parent set's the parents position (and of course can't find the right child bones). You need to modify your scripts to se the Animation on the child object. Well, the easiest way i could think of is to add a public var an name it "animation" and assign the child Component to it.

public var animation : Animation;

Also set the enemys scale to the desired size in the editor rather than runtime or the bounds of the model go crazy.

Comment
Add comment · Show 3 · 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 James Diamond · Feb 24, 2011 at 10:41 PM 0
Share

and how do I reference the child component?

avatar image Bunny83 · Feb 24, 2011 at 11:18 PM 0
Share

Like I said, add a variable to your scripts where you need access to the animation and assign the childs animation component. To assign the component to the variable just select the parent where your script is, grab the whole child object and drop it on the variable. Because I used a typed variable unity automatically assigns the Animation component of the child to the variable. Unfortunately it seems JS don't allow to hide the inherited animation property, but C# does. It just throws a warning. In JS you have to name it differently and use your name ins$$anonymous$$d of "animation" in your scripts.

avatar image James Diamond · Feb 24, 2011 at 11:32 PM 0
Share

It works! Thanks a lot!

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

No one has followed this question yet.

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

MMD How to export model and animations to Unity as 3rd person controller? 2 Answers

Only instantiate if clear space beside prefab 1 Answer

Script not applying to imported Blender Model 2 Answers

Destroy On Collision will not work with spawned AI 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