Error with rotation
Asked Answered
G

2

0

Video

When i rotate a node on y axis, i expected it just only rotate y, and it work good, but when i try to rotate x and z, it rotate all x, y, and z at the same time.

This problem happened with all node.

Terminal not show any error and recreate project is not use.

My OS is Ubuntu, OpenGL 2.1, i'm use Godot 3.5 stable

#my project.godot
; Engine configuration file.
; It's best edited using the editor UI and not directly,
; since the parameters that go here are not all obvious.
;
; Format:
;   [section] ; section goes between []
;   param=value ; assign values to parameters

config_version=4

[application]

config/name="P3"
config/icon="res://icon.png"

[gui]

common/drop_mouse_on_gui_input_disabled=true

[physics]

common/enable_pause_aware_picking=true

[rendering]

quality/driver/driver_name="GLES2"
vram_compression/import_etc=true
vram_compression/import_etc2=false
environment/default_environment="res://default_env.tres"

Does you guys have any ideas?

Gershon answered 28/2 at 13:15 Comment(0)
H
1

Gershon This is not a problem or an error. It's how 3D euler/composed rotations normally behave. Try it with any other 3D app and you'll get the same thing. There's a good mathematical reason for this but I won't get into it here. If you're interested in mathematical details, take a look at Euler angles and also chained rotations

Handiwork answered 28/2 at 13:35 Comment(0)
G
0

Handiwork

Thank a lot!!!.

Gershon answered 28/2 at 14:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.