# trying other collision with capsule collider

**URL:** https://discussions.unity.com/t/trying-other-collision-with-capsule-collider/643255
**Category:** Physics
**Tags:** Scripting
**Created:** [October 17, 2016, 3:20pm UTC](https://discussions.unity.com/t/trying-other-collision-with-capsule-collider/643255 "2016-10-17T15:20:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![monsterbuzz786](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/monsterbuzz786/32/346947_2.png) [@monsterbuzz786](https://discussions.unity.com/u/monsterbuzz786)
#### Post date: [October 17, 2016, 3:20pm UTC](https://discussions.unity.com/t/trying-other-collision-with-capsule-collider/643255/1 "2016-10-17T15:20:27Z")

</div>

i have a script and a capsule collider with prefabs, i am trying to collide. when i use collisionOnEnter i dont get a callback. i only get onStart. could i use a trigger to fix this without rigidbody?

```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ground : MonoBehaviour {
    public string wb;
    void OnCollisionEnter(Collision other){
        //if (other.gameObject.name == "") {
        wb = "alive";
        Debug.Log("I am alive!" + other.collider.name);//}
    }
     
    // Use this for initialization
    void Start () {
        wb = "other";
        Debug.Log("I am boid!");
    }

    // Update is called once per frame
    void Update () {
        if (wb == "alive"){
            //transform.SetParent ();
            wb = "sprite";
        }
        if (wb == "other") {
            transform.position += Vector3.back * Time.deltaTime*14;
        }
        if (wb == "sprite") {
            transform.rotation = Quaternion.identity;
            Debug.Log("I am sprite!");
        }
    }
}

```

any suggestions im using unity 5.5.0.b7

---

<div class="post-metadata">

### Author: ![LeftyRighty](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@LeftyRighty](https://discussions.unity.com/u/LeftyRighty)
#### Post date: [October 17, 2016, 3:39pm UTC](https://discussions.unity.com/t/trying-other-collision-with-capsule-collider/643255/2 "2016-10-17T15:39:28Z")

</div>

does something involved in the collision have a rigidbody attached?

---

<div class="post-metadata">

### Author: ![monsterbuzz786](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/monsterbuzz786/32/346947_2.png) [@monsterbuzz786](https://discussions.unity.com/u/monsterbuzz786)
#### Post date: [October 17, 2016, 3:49pm UTC](https://discussions.unity.com/t/trying-other-collision-with-capsule-collider/643255/3 "2016-10-17T15:49:48Z")

</div>

no. i tried using a rigidbody as the ground but no luck. is there some other collison callback?

---

<div class="post-metadata">

### Author: ![DonLoquacious](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/donloquacious/32/333500_2.png) [@DonLoquacious](https://discussions.unity.com/u/DonLoquacious)
#### Post date: [October 17, 2016, 5:12pm UTC](https://discussions.unity.com/t/trying-other-collision-with-capsule-collider/643255/4 "2016-10-17T17:12:18Z")

</div>

A rigidbody must be on the object **that’s moving around**. The [rigidbody component](https://docs.unity3d.com/ScriptReference/Rigidbody.html) is what tells the physics engine to pay attention to the object’s motion, so without it, even if you have [colliders](https://docs.unity3d.com/ScriptReference/Collider.html), the physics engine doesn’t even know it’s there unless a different object with a rigidbody is interacting with it.

As a rule you should set JUST colliders on the objects that you want to remain stationary (static), including triggers, but put rigidbodies AND colliders on the objects that need to be moving around and to interact with the physics engine in some way, even if the only way it’s interacting is by firing trigger events it comes into contact with. If you don’t want the physics engine to influence movement beyond the boundaries created from colliders, then use the IsKinematic setting.

---

<div class="post-metadata">

### Author: ![monsterbuzz786](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/monsterbuzz786/32/346947_2.png) [@monsterbuzz786](https://discussions.unity.com/u/monsterbuzz786)
#### Post date: [October 17, 2016, 9:23pm UTC](https://discussions.unity.com/t/trying-other-collision-with-capsule-collider/643255/5 "2016-10-17T21:23:04Z")

</div>

thanks! use kinematic helped the problem.
