You know, projectiles, bullets, metal thing that comes out from big boom sticks and makes things bleed.
Well, they wont. I have no idea whats going wrong here, as far as im aware, everything is dead simple.
Ive got the scripts in place to click and create a bullet that travels through the air. When i dont have the
Physics.IgnoreCollision(objCreatedBullet.collider, collider);
the bullets pretty much disappear while for a moment giving me trouble moving (no doubt because its detecting my collision script and removing itself automatically as per it should)
The problem boils down to this:
void OnCollisionEnter(Collision Other)
{
Debug.Log("Hit: " + Other.gameObject.name);
removeMe(); // remove the bullet if it hit anything else
}
Or at least, so i would think.
When launching a bullet at a cube created within Unity, the bullet goes straight through and no Debug information is received in the log. No matter what i do with the collision box of that cube.
So i created a simple Mesh in Maya, no dice, not even when i gave it a capsule barrier for fun.
All bullets go straight through everything, except the player when that Physics.Ignore code is in place.
I have no idea if any of this makes any sense to whats going on, so heres a screenshot