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 M1k4 · Dec 15, 2013 at 04:19 PM · collisionphysicsrigidbodycollidercharacter controller

How to setup character Collisions?

Hello!

I'm trying to setup my character and so far i modelled it, rigged it, animated it and imported it into Unity so now all i need to do is setup collisions and physics so i can start the actual game.

But my question is, how can i do this?

Obviously, i expect my character to be affected by physics in many occasions, like fly away when it's nearby an explosion or turn into a ragdoll when it falls/dies. I tried to find a good way to get these results and i found alot of articles about the character controller, rigidbodies and colliders, but i ended up confused and without an idea of which one i should use. I'm not sure if this changes anything, but i'll be using mecanim.

Extra info:

I've been reading some stuff about character control and it doesn't seem like the best approach for me, since i want to have full controll over my character and know exactly how it behaves. Also programming is not a problem to me so i would like to script something that could help me, all i need is some help to find the best way of doing it.

Thanks in advance!

Comment
Add comment · Show 5
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 Commander Quackers · Dec 15, 2013 at 07:41 PM 1
Share

This is just a thought but maybe you can instantiate a ragdoll prefab in the characters position when it dies and just delete the character itself and maybe have a camera setup with the ragdoll.

avatar image M1k4 · Dec 15, 2013 at 08:02 PM 0
Share

Could i go back to animation smoothly? And what about the actual character physics, collider, rigidbody or character controller?

avatar image OP_toss · Dec 15, 2013 at 08:26 PM 1
Share

Character controller or custom for character movement with respect to collision. Custom solution won't be easy, but you might avoid the quirks of Character Controller.

Rigid body ragdoll setup disabled. Script that disable/enables ragdoll when needed. (Turns off kinematics?) I don't think you should instantiate/destroy anything that large at runtime, so I'd have it already in the player and ready to toggle.

If returning from ragdoll, give your animation a longer tween time. But honestly, returning to animation from ragdoll is difficult. Ideally you want your ragdoll heavily constrained so it can't get in any weird broken positions. (Diablo3 made some vast improvements to ragdoll physics. I saw a behind the scenes on it. Check it out, it may be useful.)

That's what I'd do at least... Hope this helped!

avatar image M1k4 · Dec 15, 2013 at 09:01 PM 0
Share

I'm still super confused about all this, but i think i'll try to make a custom rigid body character controller, i'll try to find some info about it.

avatar image Commander Quackers · Dec 15, 2013 at 11:44 PM 0
Share

Try URG in the asset store

2 Replies

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

Answer by RetepTrun · Dec 16, 2013 at 01:59 PM

A ragdoll is a dead body.

To me there are 2 approaches to dieing.

  1. Doing a swap which is imperceptable to player

  2. Dead body walking but kinematic.

My process.

  1. make capsule gameobject with rigidbody constrained not to tip over

  2. script to add forces to slide it around for character motion (very tricky to adjust till acceptable to self)

  3. add mouse look script to turn it horizontally

  4. use ragdoll wizard on character

  5. choose to become ragdoll - by replacing with ragdoll (impossible to get up again after death but easier to implement), Or -using ragdoll with all rigidbodies set to kinematic as character then setting to unkinematic on death ().

Comment
Add comment · Show 1 · 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 M1k4 · Dec 16, 2013 at 02:04 PM 0
Share

I'll try use your process because i want something simple that works and it looks like it's a simple process.

avatar image
0

Answer by Kavorka · Feb 02, 2014 at 05:27 PM

I quess this AnimFollow

is quite exactly what you are looking for.

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

20 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

Related Questions

Limiting rigidbody physics influence on another rigidbody 0 Answers

Camera gets flung off of the map when the player collides with certain objects. 0 Answers

Tossing an object with the correct force at any distance from another so that it collides with the other 1 Answer

Velocity data from OnCollisionEnter is delayed (incorrect) 3 Answers

Determinism of collision judgment of Character Controller 0 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