Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
2
Question by Allan · Oct 29, 2010 at 11:10 AM · animationcolliderdoorbox

Box Collider not moving with animation

Hi there, hope this question hasn't been asked before already (had a look and I couldn't find anything).

Basically I have a door modeled in maya with an opening animation attached, I exported this to unity as a fbx with an heirachy of the door and the handles which are also animated.

I'm using a box collider on the door then through raycast and tags to trigger the animation.

Everything seems to work but unfortunately for some reason the box collider doesn't move with the animation so even the door is open I can't walk through to the other side (I can walk through the door now though, which obviously doesn't help).

I think I'm probably missing out something obvious but can't seem to fix this, any help would be appreciated!

Thanks in advance!

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
9
Best Answer

Answer by Atnas1010 · Oct 29, 2010 at 12:15 PM

The animation only moves the mesh being displayed, it does not change the transform of the object, which you have applied the boxcollider to.

If it is only a simple open animation I would definitely suggest not using animations to turn the door, but modifying the rotation directly from script.

If you still want to use the animation, or need to do animation for something that's a bit harder to use scripting for, such as a whole character, you can attach primitive colliders to bones, and they will follow the animation.

Hopes this answers your question

Comment
Add comment · Show 2 · 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 Allan · Nov 03, 2010 at 10:34 AM 0
Share

Hi Atnas, thanks for the explaination...I couldn't solve it in the end so I re-animated the door in Unity.

I guess I was trying to figure it out as I was worried I couldn't get my character animations working also down the line. I'll try what you said about attaching primitive colliders to bones though, thanks for the help!

avatar image Weightless · Aug 24, 2020 at 11:10 AM 0
Share

Pretty old question but this "you can attach primitive colliders to bones" is an amazing idea! Would have never thought of it myself.

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

Open Door Via Trigger Collider 0 Answers

Player to Door Collision and Animation 3 Answers

How to move BoxCollider with animation? 1 Answer

Pause animation door when you block it while opens/closes 2 Answers

Animating Colliders? 2 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