When I destroy a gameobject instead of it disappearing it just returns to origin (and disappears from the hierarchy window)
test gameobject i made is destroyed no problems
code is:
void OnTriggerEnter (Collider col)
{
if (col.gameObject.tag == “Bullet”)
{
Destroy(gameObject);
}
}
it works but I don’t know why it’s returning the gameobject to origin - any thoughts?
NB: Here is a video on youtube:
The blue cube is the test gameobject and has all the same properties as the zombie head as well as the same code