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
1
Question by Privertex · Apr 22, 2013 at 07:47 PM · animationcollisionblenderdoorskinned mesh

Creation of a door with collision for a FirstPerson game

I'm currently trying to create a door for a First Person type game. So far I did the following:

  • created a model in Blender

  • rigged the door mesh to an armature with a single bone

  • created two animations (close and open)

  • created a lowpoly mesh for collision

After importing the door into Unity I'm quite confused about the different options. For example I'm not sure which Animation Type I should use (currently I'm playing with Legacy). Furthermore I'm not sure about the best practice to add the collision mesh to the door which has been setup with a Skinned mesh renderer and no collision by default. Both animations work fine however.

Is there any best practice for the creation pipeline of animated doors or other animated assets with collision meshes? I don't want to use hinge joints for the door by the way. Thanks for your help.

Comment
Add comment · Show 4
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 GC1983 · Apr 22, 2013 at 08:07 PM 0
Share

Why deal with the pains of animating and just do it in Unity?

avatar image Privertex · Apr 22, 2013 at 08:32 PM 0
Share

Animating a door is rather simple in my opinion. At least if you compare it to animating humanoid characters :D

By "doing it in Unity" you probably mean rotating the door by script? That would be easy but I intended to have more detailed doors later e.g. with moving handles, sliding locks and so on.

avatar image Glister · Apr 22, 2013 at 09:27 PM 0
Share

You don't necessarily have to use the collider that's already on your door to setup the collision detection. You may also want to consider using the Function OnTriggerEnter.

Collsion Script Refrence

OnTriggerEnter Script Refrence

avatar image IR Nifty · Apr 23, 2013 at 06:22 PM 0
Share

I believe it best that your doorhandle, etc. should be animated on your model, but the actual rotation of the door be handled by Unity. Why? Because Unity will not change the collider based on the animation, if I'm correct, but it will if it's the one rotating the door. As far as triggering it to open, make a sphere collider as a trigger, when the player enters it, begin listening for your desired keypress, and let Unity rotate it when the key is pressed.

0 Replies

· Add your reply
  • Sort: 

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

14 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

Related Questions

Player to Door Collision and Animation 3 Answers

Presure plate that triggers an animation 1 Answer

How to animate level mesh with collider? 1 Answer

open and close door 0 Answers

FPSController Collision with moving objects 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