Is their anyway to get a character to land in an exact spot with a spring?

In my game you use springs to bounce around in one section (screenshot) theirs a good amount of springs linned up but I have no clue how to make the character land in those exact same spots since all outcomes end up being diffrent any suggestions???

dont use physics, predict the landing point with a line trace or just set it manually and then interp the actor to that location

1 Like

Hey @UselessRaid!
I suggest giving each spring a reference of the target actor/spring, so it would know to what position it should launch your character. Then use this node to know the direction you should apply force to your character:
image
With the location of the character on spring as the “Start Location”, the location of the destination sprint/actor as the “End Location”, your desired value as the “Launch Speed”, and if there are no obstacles on the way, ignore the rest.

If there is any solution for that projectile path, the node will return true, and you can apply “Toss Velocity” as the force you should apply to your character to reach the destination by being launched.

1 Like

So if I get the ref of the next spring (end location) and adjust the launch speed that is all I need?

Yup

I’d say the easiest way is to just calculate spline points between springs with code, then move a character from point to point over the spline. No collision / traces / physics / projectile logic required. Kind of similar to shooting from barrels in Donkey Kong or Skunny where you move over a path unable to move until you hit the ground. Same idea as those launchers in Klonoa. You could even enable sideways movement but control the up-down movement with just a curve asset like here. If you want to hardcode a path from spring to spring (or to exact spot) then calculate a spline, disable character movement, disable gravity etc if needed and just use Tick to set actor position over X distance on spline.