Hot answers tagged game-mechanics
I'm gonna make a wild guess that you are using 3D colliders. Check out the colliders of your character and make sure you froze rotation and Z transformation so that your character will not rotate or bounce in Z direction upon a collision.
I don't know if you are still reading it, but here is how I'm doing it now (code is based on UE4 and C++). After pondering on the problem for more than two weeks (!!), I finally found this: http://gamedevelopment.tutsplus.com/tutorials/using-the-composite-design-pattern-for-an-rpg-attributes-system--gamedev-243 And I thought, that well, encapsulating ...
Only top voted, non community-wiki answers of a minimum length are eligible