Launch character to a target location

Ikthaleon
Fri, 19 Feb 2021 12:44:30 +0000
Character & Animation

Hello,

I’m attempting to launch my currently controlled character to a location the player has clicked on. I’d like the character to launch in an arc from their position and then land on the target location. (Think Thor leaping with his hammer and doing an AOE at the end of the leap)

I’ve tried a number of methods from adding impulse to predicting projectile paths. The closest I got to was using the array of vectors from PredictProjectilePath and then using SetActorLocation from those - this seems to work ok if you turn off Gravity. Unfortunately this leads to a very stuttery experience - as the actor is doing micro jumps from one location to the next - was hoping for something smoother.

I was hoping there was someone out there that has solved this, or something like it?
TIA

11 posts - 4 participants