I’m working on a minigolf game and I’m using a lerp camera that follows the ball. I’m hoping to use this to easily get a smooth camera motion between one hole and the start of another.
I have found that I can delete the ball and spawn it elsewhere to get the camera to follow well… but I don’t know how to get it to spawn at a specific instance of my target object. Is it possible to reference a specific copy of an object? Either by instance variable or otherwise?
If you think of a golf course layout, I basically just want to say that if you get it in Hole1, spawn the ball at Start2. If the ball is in Hole2, spawn at Start3. Etc.
Perfect, thank you Slash. With this info, I was able to set up a scene variable that increases by one each time I click my Next button or the ball goes in a hole, so now I can easily move from hole to hole!