Get velocity of object moving by timeline?
What I am currently doing is moving an object (a floating island) by lerping it from one point to another with a timeline and set actor location.
This has worked well for me so far, until I realized I need to get the velocity of the island that is moving. I tried getting the velocity of the character movement component, only to find out that because I am setting its location with a timeline, its character movement velocity is (0,0,0). Is there any other way I can get the the current velocity of the actor when it's being moved this way?
asked Feb 19 '17 at 07:13 AM in Blueprint Scripting
Realized I'm an idiot who forgot what high school physics is, and that Velocity can be calculated using the Change in position over change in time, ie the (endLoc-startLoc)/(LerpTime).
answered Feb 20 '17 at 02:00 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here