lock rotation

Hi iam trying to make a 2D platform game and iam trying to lock the rotation in th z axis so how i do this?
I want to know how to do it in an easy way please if there isnt then show me anything.
I already know how to lock location by “Constrait” so how do i lock the rotation !!!:frowning:

okay,
for rotation along the z axis. you can easily do that by going in the physics tab and check the lock rotation for the object.
no offence but i prefer to search on Google for a solution or YouTube. when you can’t find it in any then post it on blenderartists.
thanks.