- Home /
How to respawn an object
Hello guys! I am making a scene in my game (i forgot the name of it i think it's pub\heavy) It's a party...
So, i made a few beer cups and put ragdoll physics on them. As it is a FPS, i don't need to mention that players will constantly shoot my beer cups down. The problem is that obviously when they are hit, they fall to the ground and stay there.
Do someone know a way to make my cups be destroyed and respawned at the same location that they were before? They are all children of an empty game object named "Drinks". I wanted to respawn Drinks in the same location it was before it was shot. Can someone help me?
Answer by Masterio · Oct 18, 2016 at 07:40 PM
Save positions in Vector3 array on Start.
And overwrite the positions after restart.
Your answer
Follow this Question
Related Questions
How to disable and enable HingeJoint? 0 Answers
DontGoThroughThings cant handle respawn? 2 Answers
Moving an object to points 1 Answer
Can I, someway, avoid centripetal force? 0 Answers