I have a ball that spawns every 5 seconds and then flies through the air. Think of a golf ball being hit at a driving range with an automatic ball dispenser. I want to get how far the ball goes, so the idea is to have an actor where the player is (I guess I could just use the player but whatever), and set its height to the ball as it flies through the air. Then measure the distance between the two.
So see pic for blueprint. On event tick, I am just updating a widget’s text to show the ball’s z position. I then want to set the other actor to that z position. The problem is, as soon as the ball spawns, the actor by the player moves to a seemingly random spot and just stays there. It doesn’t move as the ball goes up and down, etc. Also, the widget text is set when the balls spawns, but doesn’t change as the ball moves.
So it seems event tick is running because if I do a print I get them every tick. Just the value of z does not change of the ball as it moves for some reason.
Any insight? The ball moves when it is spawned from a forward vector added to Add Impuse