![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | bgegg |
i can make limit of rotation by get_rotation_degree() and rotation.x propertie.
but i can not make it by rotate_x function.
can i do it?
var angle = 0
func _physics_process(delta):
if Input.is_key_pressed(KEY_A):
angle = clamp(angle + 0.01,0,PI/4)
rotate_x(angle)
i think rotate_x function for rotation amout.
it is not for rotation angle limit.
What is the type of your node?
BraindeadBZH | 2019-08-28 17:08
sorry,node type is kinematicbody!
bgegg | 2019-08-28 19:25