0 votes

Hey!
I got this wierd thing, im folowing a tutorial online where im making an object that can move side ways(on another object, which serves like a floor), but when i do so, it rotates.
There is nothing in code that suggests it, i copied it perfectly but for me, object starts rotating, while in the video its static
I hope it made sence,lol, plz help
Maybe i can turn it off somewhere?

in Engine by (227 points)

1 Answer

+2 votes
Best answer

I think your object rotates because of ground friction.
But there is an option to prevent this if you are using RigidBody, you can set its mode property to Character : http://docs.godotengine.org/en/latest/classes/class_rigidbody2d.html?highlight=MODE_CHARACTER#numeric-constants

If it's not that, I'd like to see the tutorial :)

by (29,090 points)
selected by

Thanks for your reply, it worked like a charm! :)

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.