How do I enable a character to be pushed/affected by collisions?
Hello, I have a pretty basic character set up, however I can't seem to find a way to enable some functionality I need.
Currently the characters can push other objects around no problem, and that's good.
The problem is that I also want other objects to be able to push the characters around too, however the characters seem to be locked in position if they aren't moving, and so I can't push them with other characters or actors. (Imagine infinite mass)
Changing the mass on the Movement Component doesn't seem to do anything.
Is there any way to enable functionality like this?
EDIT: Does anybody have any ideas? I've tried setting Simulate Physics to true, but that causes the Capsule Collider to just roll around the map ignoring player input. I've also tried implementing some fake physics by detecting hits and changing velocity / launching based on them, however the movements seem very inconsistent and wrong.
I think I am about to give up and write my own character from base pawn.
Or there is the getto method, where you turn on the simulate physics before impact and after the effect is over you turn it off again. It needs some tweeking but it works.
answered Mar 23 '16 at 09:07 PM
Sorry if I'm bringing back an old thread, just bumped into this. Launching the character might be a good idea
answered Oct 07 '16 at 12:40 PM
Have you tried using Add Impulse? This could be more what you are looking for. Set it up to where if an object collides with the player, it adds impulse to the player and the capsule in the desired direction. Hopefully this helps!
answered May 01 '14 at 06:53 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here