An actor walking on top of a platform that is 10x10. If the user is moving along positionally 1,1 then 1,2
then 1,3 etc. etc. is there a way to get the relative location on tick? i.e. get the location the character is hitting the platform relatively and not by world position?
1 Like
You’d normally approach something like this with an Inverse Transform node:
- the character movement component already knows what we’re standing on so I’m using that
- we then inverse transform from world → local
- this will produce values in the range of
-50 <> 50
as the component is 100uus across - you can then use Map Range node to translate them into any other range (or just math it out)
- you may need to account for scaling if necessary
2 Likes