- Home /
RigidBody z-axis movement constraint/block not working properly?
I have a simple rigid body character object for a sidescrolling platformer game which moves left and right along the x axis. I have checked the rigidbody constraint box to prevent movement along the z axis, however my character still does so whenever it bumps into any object(particularly spherical ones) and gets thrown off its path. This happens even more often whenever I run the game on my android phone for some reason.
Any ideas on why this happens and if it can be fixed? Thanks in advance :)
Answer by deltron1830 · Aug 24, 2014 at 01:27 AM
Just out of curiosity why are you not using unities 2d physics?
This would eliminate this problem you are having but more importantly it would greatly improve performance.
Interesting, its a 2.5d game with a perspective camera however and there is meant to be scripted movement along the z axis in certain parts of the game.
Your answer
Follow this Question
Related Questions
Set all Children Rigidbody Constraints C# 1 Answer
Constraining an Interactive Cloth movement 0 Answers
Object only moves on global x axis 2 Answers
Unlock rotation from script 1 Answer
RigidBody z-axis movement constraint/block not working properly? 0 Answers