I have an actor that has a flipbook inside it, i want this flipbook to move from point a to point b, its working right now but it just moves directy. I want it to move with a little curve like you are throwin it to the air. How can i do that, this is my blueprint right now
You need to override the z location of the bomb while it travels
Break the target location into X,Y,Z and before plugging it into the lerp function you need to add to it’s Z axis while the update is happening.
Open up your timeline and add in a second float variable. Give it the arc you need while the timeline is playing.
start at 0 then at mid point add a second node, set it to a bezier curve, give it a value like 100 then at the final point of the timeline make it go back down to 0
Rename it Arc.
Now your timeline should have two float’s coming out of it.
get the target location and to it’s z value add in the newly made outgoing ARC value.
Depending on how you made the float value it will travel up by the set amount in a an arc.
@ClockworkOcean is right about the delay and destroy actor part. It needs to be moved to the completed pin. As for it it needs the delay, I’m not too sure. The timeline should be set to the flipbook’s duration or set for 1 second and scaled by the flipbooks length.
You could also multiply to z travel height be the distance between start and end location to make it go higher the longer the throw distance. (otherwise the arc will seem flatter at longer distances)
Thank you <3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.