WebYou're getting the location on BeginPlay. That means it's happening once, right as the actor is spawned. If you want to have real-time updates, you're going to want to be doing this in … Web25 Oct 2024 · UE4 - Rotating an Actor on its Local Z-Axis, Using Another Actor's World Location (Solar Panel) Ask Question Asked 1 year, 5 months ago Modified 1 year, 5 months ago Viewed 2k times 0 I am working on a project that has solar panels. The solar panels must always face the sun in the most efficient way.
[Help] Get Actor Location not returning the correct location.
WebA much better answer has been posted on Unreal Answers by Rama: Use the AActor::GetLastRenderTime () to find out for each actor when last drawn or UPrimitiveComponent::LastRenderTime for the primitive itself. His answer explains how you can use this. Original answer: southridge vet ridgetown
Unreal Gameplay Framework Guide for C++ - Tom Looman
WebGet Actor Location works there, and the code there runs the way it should with no problems. It's not until you get to the "RoamNearTarget" Macro at the end where it fails. http://i.imgur.com/A0T9cE1.png WebTo calculate direction for any actor regardless of the components used, you can create a variable that stores the last world location (Vector3). On every tick, get actor world location, subtract that from the last world location, and then normalize the vector. WebGet Actor Location works there, and the code there runs the way it should with no problems. It's not until you get to the "RoamNearTarget" Macro at the end where it fails. … tea good for stomach ache