Godot Version
Godot V4.3_Stable
Question
Hello, I’m new to godot and like in the title, the character wiggles uncontrollably when the mouse isn’t moving too much, please have a look at the clip of the issue for clarification.
Quick Video of Issue
So my question is how can I stop the wiggling?
And here is the script I’ve made
extends CharacterBody2D
func _physics_process(delta):
var vel : Vector2 = get_global_mouse_position() - global_position
velocity = vel
global_position = get_global_mouse_position()
look_at(global_position+vel)
move_and_slide()