lerp, timeline and interp to nodes for smooth start and stop, but no target???

hi, i’ve been wondering if anyone could help regarding smooth start and stop using a add local offset node

example, if i have an object i control the movement of using keys/ axis mapping, and i want the movement of it to be smooth from start to stop, do i use a lerp? a vinterp to? or timeline? if any, how to construct it using axis mappings?

issue that im having is the target location using a vinterp to node, because i control the object using keys, i dont really have a target location i wanna go to rather just control it to wherever i want to control it to, and thats actually my issue, getting smooth movement but have no target location.

any help?

You can use Add Actor World Offset, set the Delta Location with movement direction * movement speed * delta time.

If the player is controlling Character class based object, use Add Movement Input instead.

1 Like

sorry for late reply, whole pc crashed , had to replace pc.

im going to try this and give you feedback, thanks alot though.

i dont completely understand, ‘set delta location with movement direction’? thing is i have no set direction, direction would be where ever i control it to with the inputs, keyboard/joystick, or whichever other method.

then, u need to get the direction vector from the keyboard/joystick
for keyboard, u don’t have to get the direction, u can just set (0,-1,0) direction for A/(Left arrow) and so on
while joystick, u need to get the thumbstick direction

how would i get the direction vector from they keyboard?

for keyboard, u can just set (0,-1,0) direction for A/(Left arrow) and so on
for joystick:

depend on which input system do u used

1 Like

okay, let me check this out, i’ll get back to you, thanks a million.

what i’ve seen now, i always use axis mappings right to control whatever movement i want in game, but i always seem to have issues when using axis mappings.

example i’ll send a video now of me using a timeline, i’ll show the BP and all, i need to know how to use axis mappings with all these nodes properly.

if i use the axis mappings values which is always 1.0 and -1.0, the timeline effect does not work, but if i connect the timeline straight to the add offset node, it works as intended, let me send examples for you to see.


this is using axis mapping values, which does not work with timeline, here it works with my keys when pressed, but not smooth movements


and this is plugging the timeline in straight to the add offset node, and note that i want to use axis mapping to control the offset, from when to start when key is pressed and when to stop when key is released. here the movement is smooth, but not controlled by axis mapping key.