How to make a catapult trap door

I would like to create a door that shoots me into the air when I step on it. The closer I am to the edge, the further it shoots me.

What should I use and how do I do it?

Check out the video and you’ll understand! :slight_smile:

Thank you!

Hi there,

Many ways to do it, however this feels you will use this as an additional Ability/SkillShot to unlock player to do something.

The most common way to do this is not to rely on physics interaction between the trap and playercharacter but to launch character manually.

For that you can simply use node Launch on player with a given vector of direction multiplied by a number.

PlayerCharacter->Launch( TrapDirectionNomalised * SpeedFactor)

if you want physics interactions handle that, just let me know however there would be many things to consider like physics materials between, moment of trigger and moment of cut force to achieve a designated trajectory.

2 Likes
  • if physics interactions settings not changed and the trap is fast enough with right collisions etc, it would launch as expected like below. You can check collision setting and maybe use CCD also further debug issue on your side. Since you character flickering at that moment i feel there is somekind of collision problem or something else.

1 Like

Thank you! I was thinking about the launch character function, so I will use that.