Character's weapon collision with walls
Hey everyone. I'm quite an UE4 newbie and recently ran into this collision-related problem.
I'm doing a shooter game and here pictured is a character holding a weapon (as an actor attached to a socket of the character's mesh - all weapon actors are subclasses of a single Weapon blueprint), but I'm having a hard time figuring out how to make the weapon collide with the walls so that it doesn't allow to shoot through walls :-D
What I already know:
1) you can't really alter the character's capsule (inherited from Character) other than its height and radius, and the capsule is the only thing that the standard CharacterMovement class cares about;
2) adding another capsule embracing the weapon to my character class doesn't work (as a consequence of 1.);
3) I've also tried setting the collision properties on the weapon mesh itself, also no effect
4) If I set the weapon mesh to OverlapAllDynamic, overlap events work as expected, but I don't think I want to dodge the issue by doing an animation pointing the gun upwards when approaching a wall (as many answers suggest).
The wall's mesh collision preset is currently set to BlockAllDynamic.
If someone takes his time to help me, I owe him a beer :)
asked Jan 07 '16 at 12:53 PM in Blueprint Scripting
I think a blocking volume could work?
answered Jan 07 '16 at 01:21 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here