I have created the turret following this tutorial:
however there is one problem the “get actor location” node (see below) doesn’t update when playing, it finds the object at its start position but when I move the object the position stays the same.
Hi man , When you move your turret, be sure to move the Whole actor.
If i make a tank blueprint, and when i move , i move away the mesh of the tank and his collision.
My actor didnt moved at all.
I am pretty sure that the get actor location work fine.
Be sure that you are getting the right “actor” because i am pretty sure that you can pin in also static meshes and scenecomponents…
I’m not sure I understand, the target object has just a sphere mesh and the default scene root components, does this mean that the mesh is moving but not the scene component? how do I get components on the target actor?
See this example, i have a blueprint with a cube, and a sphere with physics active.
I move the cube , and the sphere fall.
If i call the location of the actor, it will never be different from the initial.
I have to move the actor or the masterscene component to change his position.
I’m running into the exact same issue. Does anyone have another way to explain how to solve this? The above answer isn’t making sense or I’m just not understanding it.
I have a skeletal mesh of a plane that flies through a scene with pre made animation in a animation asset, it’s not player controlled. I want a turret to track and look at it as if flies through the scene. The turret looks at the starting location of the plane animation, but stays there and doesn’t continue following the plane. When I look in the blueprint the “GeWorldLocation” node won’t update with the animation, it just sits at the initial location of the plane.
I think I found an easy work around! I was having this same exact issue, the actor wasn’t updating their location and the turret was staying stuck on their initial position. I simply added a socket to my actor, and that updated in real time and I got the turret to follow the socket attached to my actor.