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 xar · Sep 22, 2010 at 04:55 PM · animationmovementforceragdolldeath

How to implement Mob movement / death ?

I'm trying to make a Diablo style game, and i'm wondering on how to set up my mobs. I got models with bones and animations (walking, idle, hit, etc) and i want to know the best way to make it work nice.

1) How do the big studios implement the movement?i guess they use some kind of animation or they only use ragdolls on which they add forces?(this sounds a bid hard to do on a large scale game)

2)i was initially using Character Controllers on mobs but i read its mostly for player - i guess it's true?I was moving models using transform.rotate and charactercontroller.move

3)So the right way to do it is to add a ragdoll, make the rigidbodies 'isKinematic' and when i want to add a force i enable one or some of them?

!!Using force would be nice when the mob dies (so that death effect is realistic), when a mob is being hit(i can make a 'being hit' animation, but i guess forces would make it look cooler), and when a mob is being pushed(if a mob bumps on another).

4)i've also read about death effect being implemented with killing initial object and instanciating a ragdoll on its place - wont that be bad looking since ragdoll pose when it is instanciated will be different that mob's before it is destroyed?

5) when i apply a ragdoll on my mobs, even if i turn it to 'isKinematic', animation turns sloppy, and that is caused by the box/shpere/cylinder colliders applied because if i destroy them animation is fine again - what can i do about this??

6)I see that oncollision() similar functions detect ground collisions that i dont need atm - is there a way to exclude them or should i just compare collision layer/tag with ground's?

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
1

Answer by The-Arc-Games · Oct 11, 2011 at 09:28 AM

The first three questions are too much game design-wise to be answered easily. Implementing full ragdoll character movement is a time consuming and complex art, so you normally just use animations, translations and rotations (this is actually what most game studios do), especially since it looks very good when done decently.

Regarding 4, 5 and 6:

4- you solve this by instantiating the ragdoll in the current object's pose, and then destroying the ragdoll (see below)

5- this is most certainly because of unwanted intersections between the colliders. can be solved by hand if you're very patient

6- using layers to leave out unwanted collisions is the best and fastest way to go. Just go to the physics options in unity's configuration and correctly set the collision matrix.

In particular, if you want to see how the pose copy script works, you have a working example in our ragdoll tool, the URG! http://unity.thearcgames.com/URG!_Ultimate_Ragdoll_Generator

Drop by the forum thread if you have questions about it, of if you found it useful :) http://forum.unity3d.com/threads/107501-Release-URG!-The-ultimate-ragdoll-generator

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

1 Person is following this question.

avatar image

Related Questions

How can I move my Ragdoll? 1 Answer

How do I make enemies ragdoll after being shot with a Raycast in VR? 0 Answers

ragdoll force trouble 0 Answers

On ragdoll joints, can I apply rotation force? 1 Answer

Animation not working correctly on moving object 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