- Home /
Question by
AsPhAlT · Jun 16, 2015 at 01:06 PM ·
gameobjectrigidbodytriggeroncollisionentercollison
OnCollisionEnter without disabling isKinetic
Hello. I need script like :
if(collision.gameObject.tag == "tag"){
doSomething;
}
The problem is that I can't disable isKinematic in rigidbody(my prefab is falling through the floor). By far there's no "isTrigger" overthere, and fixedUpdate with target finding is lagging too much. Any idea?
Comment
Best Answer
Answer by tanoshimi · Jun 16, 2015 at 01:06 PM
If your rigidbody is kinematic, set the collider to be a trigger and use OnTriggerEnter() instead.
Your answer
Follow this Question
Related Questions
Trigger and collision events not being called 1 Answer
Access other collider without use of Trigger collider. 1 Answer
Repeat a Animation on the same GameObject? 1 Answer
rigidbody.velocity not working on x axis 2 Answers
How do i destroy only 1 object when 2 instances of the same object collide ? 2 Answers