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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by dorpeleg · Sep 10, 2012 at 12:45 PM · physicsrigidbodycolliderfps

Best way for rigidbody enemy?

hello, what i want to is this:

i want to have an enemy that when i shot him his body will react the reason i don't want to do it with animation is that:

i want each body part to react interdependently so if i shot him in the leg his leg will react, if i shot him in the head his head will react etc.

so i was thinking about making the enemy with rigidbody (1 main rigidbody for the entire enemy and then different rigidbodys for each body part) and use some commend like Rigidbody.AddForceAtPosition on the body part when i shot him...

is that the correct way to do it? or mybe there are better ways?

i think making it my way will work but it will take long time to setup rigidbody for all body parts....

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 Kryptos · Sep 10, 2012 at 12:57 PM 1
Share

Please make sentences and insert line breaks. It is hard to follow your thought.

avatar image dorpeleg · Sep 10, 2012 at 01:11 PM 0
Share

sorry guys :) will do next time

1 Reply

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

Answer by Fattie · Sep 10, 2012 at 01:03 PM

What you want is a "ragdoll".

it is quite easy to do in Unity3D ... search for 100s of tutorials and many documentations in Unity itself

try different methods. in fact usually, just apply force to the body. that's usually the result you want. suggest you actually try it, you'll see the result. another idea is you could have a few different force-points, and randomly pick one each time. but honestly it's so quick just "on the body" will likely be fine. good luck!!

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 dorpeleg · Sep 10, 2012 at 01:22 PM 0
Share

ok looks like there's is a ragdoll wizard built-in in unity. i used it and it automatically made all of the rigidbody parts for the model. so should i go with Rigidbody.AddForceAtPosition like i said? or should i use something else? if you think i should use Rigidbody.AddForceAtPosition, how can i track witch body part to use force at? raycast mybe?

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

10 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

Related Questions

Low framerate on physics initialization. 0 Answers

How to stop an rigidbody enemy from jumping when chasing the player? 1 Answer

Why does this MeshCollider think it's half as thick? 2 Answers

When and when not to use kinematic rigidbody? 2 Answers

Do you have to have a rigidbody component for collision detection? 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