- Home /
Hitting people by a car
how to create something like....pedestrian model is walking on street and when is hited by car it act like ragdoll, something like this??http://www.youtube.com/watch?v=Zeb6KEJUKE0&feature=related i have animated model and its ragdoll...look here:http://www.youtube.com/watch?v=pYRcZcLueN8
Please don't repost the same question. I can help you with your other question, but reposting is confusing.
Answer by Henrique Dantas · May 21, 2011 at 01:34 AM
Just use: OnCollisionEnter, then delete the animated object and replace by the ragdoll one. If you want to make it more realistic, you can buy Advanced Ragdoll from ActiveDen.net!
Answer by slajmstudio · May 21, 2011 at 09:39 AM
yes i have the advanced ragdoll...but can anyone write sample script ? :) please
Answer by slajmstudio · May 21, 2011 at 09:52 AM
function OnCollisionEnter (col : Collision) {
if(col.gameObject.CompareTag("player")) {
KillPlayer();
}
}
function KillPlayer () {
isControllable = false;
rigidbody.isKinematic = false;
}
what about this, nothing happens when i collide with a ragdoll it is still animated...
Your answer
Follow this Question
Related Questions
Ragdollize kinematic rigidbodies 0 Answers
convert the character to a rag doll 3 Answers
The timer starts after a collision with an object 1 Answer
Ragdoll with multiple colliders 0 Answers
camera detect collision 2 Answers