How to allow Character pawn to push other Character pawn?
I know that Character actor is kinematic, but I need to allow other players to push each other. And also I don't want to write my own physic based character.
So what's the best way to add this feature? I also need in ability to push characters by some level parts - moving walls, giant falling balls and etc =)
asked Jun 01 '15 at 04:29 PM in Using UE4
In my Fighting Game Project I use an event that is called every frame the character moves and when they have a certain distance. When they are too close, player A pushes player B the direction it is moving the same amount.
I move my characters with Add Actor Local Offset, so the pushing is also done the same way. It may be a different story if you are using velocity but I think the way to do it would be similiar anyhow.
One thing that is a plus on my end is, Add Actor Local Offsets work together, having two of them does not cancel the other.
answered Jun 02 '15 at 05:35 AM
I used Launch character on both, using each side of the difference in velocity vectors to make it act like an elastic collision equation. But yours sounds smoother.
answered Feb 02 '19 at 03:30 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here