Announcement
Collapse
No announcement yet.
Have I checked the distance correctly?
Collapse
X

There is already a function that returns distance between actors (I don't remember the exact name right now but probably something like Get Distance of Actors).
If you want to find the distance between two vectors (GetActorLocation) then the formula is length(VectorA  VectorB) so you are close, simply get rid of the GetDirectionVector one and subtract them instead.
4.10 Update! > [Community Project] WIP Weather & Ocean Water Shader
WIP Interactive Water Shader, WIP 2D Water Sim
WIP FFT Ocean w/ Foam, Quadtree Infinite Ocean LOD
Comment