Slingshot style launching system.

Hey, I’m using the ball project template and trying to make it so that if a button is pressed, the player can use the mouse to sort of slingshot the ball.

For example: The ball is stopped and the player needs to cross a gap. If the player holds down shift, ropes come out of either side of the ball and tether it to the ground. The player can then drag the ball backwards with the mouse, and release it to launch it over the gap.

I’m really not sure how to go about this, and I’d appreciate it if someone could point me in the right direction.

Thanks.

The initial velocity of the Ball after it has been fired would probably just be simply determined by the tension on the ropes. Just use a simple calculation to determine how far back the player pulled the Ball under load and use it to set the Balls initial velocity when it is ejected from the slingshot.

Since the ball is working on physics for movement already shouldn’t it’s velocity be affected by gravity etc properly once you launch it anyway?

1 Like