- Home /
A basic question about collision
When you try to attach some components to a gameObject can a collision create in their works? you assume i attach a boxCollider , Rigidbody , Character Controller to a gameObject. basically is this work?
Answer by Statement · Aug 13, 2011 at 11:13 AM
Your question doesn't have proper grammar so it's hard to deduce what you're trying to get help with.
If you want to create a dynamic rigid body, add a collider and a rigid body to it.
If you want to create a static collider, add a collider. If it is expected to move, add a rigidbody and set isKinematic true or you will be having perfomance hits.
If you want to create a simple character, only add the CharacterController.
If you want to create a trigger, add a collider and set isTrigger to true.
If you want to handle the event of something colliding, implement OnCollisionEnter.
If you want to handle the event of something colliding with your character, implement OnControllerColliderHit.
If you want to handle the event of something entering trigger, implement OnTriggerEnter.
Your answer
![](https://koobas.hobune.stream/wayback/20220612175751im_/https://answers.unity.com/themes/thub/images/avi.jpg)