I don’t understand how this works, but whenever I set the transform.position of newly instantiated gameobject to my players transform.position it doesn’t work properly.
Instantiate(corpse);
corpse.transform.position = transform.position;
Destroy(gameObject);
On the first play test it usually works quite well and the gameobject, my corpse, teleports to where it should be. However on the second playtest (where I press the play button to exit the game and then press it again to play the game again). The corpse is teleported to where it was on the first play test. And on the third play test it’s teleported to where it should have been on the second play test. And the cycle repeats. I have zero clue what could cause this sort of behaviour and nowhere in my project utilises PlayerPrefs or any kind of saved data. I’ve made sure the player isn’t inside any other object in the hierarchy as well. Has anyone else experienced this?