Reply To: Character Falling Through Floor

Home Forums Books Mastering Unity 2D Game Development Character Falling Through Floor Reply To: Character Falling Through Floor


Hi sorry for not getting back sooner.

The RigidBody enforces gravity but as we set the Gravity Scale to 0, gravity should have no effect.  The movement script only moves the player left or right.

So it’s curious as to why your character is falling when there is no force being applied to it.

You say you moved the rigidbody component from the sprite to the player, can you confirm it was removed from the sprite?  Only reason I can think of why it should just fall if one game object in that hierarchy still has a rigidbody with gravity applied.

Could you zip your assets folder and post it on dropbox or other file share for me to look at and we’ll see what’s happening.




Simon (Darkside) Jackson