- Home /
Destroy player on getting collided/touched by obstacles
I want my player(car) to destroy on getting in contact with other vehicles for some reasons I can't use rigidbody on any of my game object so I can't use OnCollisionEnter /OntriggerEnter
Is there any other way of doing this ??
Answer by jimmycrazyskills · Dec 22, 2018 at 02:44 PM
Hi mate, you could try and use a rigidbody and check the is Kinematic checkbox (so it doesn't react to a collision), then set your collider to use triggers instead so you can call OnTriggerEnter
instead of OnCollisionEnter
Hope this helps :)
P.S Just curious, why can't you add any rigidbodies to your object?
I thought of this before and it's my last option too But I thought if I could get any other way so I asked it here. Now I don't think it's possible by anyother way so I will surely try this. Thanks :)
And my player misbehaves a bit after adding rigidbody and it's a mobile game so I want to make it as stable as possible thats why I didn't want to add rigidbody
Your answer
![](https://koobas.hobune.stream/wayback/20220612184418im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
What is Matrix4x4? 2 Answers
How do i code a Mesh collider ? 1 Answer
Using animation curves for fall and roll-over in and endless runner 3d 0 Answers