About Dynamic Collider

While shooting on Cubic Gunner, some bullets are passing through target objects without any interaction.

What a pitty.

However Neeska has come At First Blue Monitor Light On The Second Day   and served her help. She offered that using of dynamic collider for bullet object after testing the game. I’ve add collider to my bullet in a script as given below,

And it works!

void Start () {
// Adding simple collider to game object while creating it.
BoxCollider boxCollider = gameObject.AddComponent<BoxCollider>();
}

I will update this post later with advantages of dynmaic collider.

For now the given script will helps to who needs to know that how to hitting objects instead of passing through them.

Thanks Neeska 🙂

Leave a Comment

Your email address will not be published. Required fields are marked *