Object rotates when moved, why?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Serenade
:warning: Old Version Published before Godot 3 was released.

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?

:bust_in_silhouette: Reply From: Zylann

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 : RigidBody2D — Godot Engine (latest) documentation in English

If it’s not that, I’d like to see the tutorial :slight_smile:

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

Serenade | 2016-09-07 11:16