Collision question

Hey guys!

If I have an object (Ball) that is simulating physics and wish to push it with a object (Bat) that has collision detection on I have done this with an animation that pushes the Bat into the Ball pushing the Ball but I want to create a ‘light’ attack and a ‘heavy’ attack were the heavy attack pushes it harder how do I do this?

(Changing the mass of the ball won’t help in making the attacks push it a different amount? and the Bat has no mass as its only using collision and not simulating physics?)

Halp! :open_mouth:

The reason its not changing is because when the bat isn’t also simulating physics, its mass can (kind of) be considered infinite, meaning it will push aside anything that can be moved, because said other object can’t affect it back.

As for a fix
I’d suggest you place a radial force into your Bat actor, and on the moment the bat Hits the ball. Have the force fire an Impulse.

That should affect the ball more

(Edit for extra possible help):
Using that, you can either have the “light” attack be a version that doesn’t fire an impulse, or create 2 versions that fire impulses at different strengths.