move aiming processing to physics process to fix jitter
This commit is contained in:
@@ -27,7 +27,6 @@ func _ready() -> void:
|
||||
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
call_deferred("_aiming")
|
||||
|
||||
var aim_pos := global_position + aiming.aim_offset
|
||||
Debugger.marker("aim", aim_pos + Vector3.UP)
|
||||
@@ -35,6 +34,7 @@ func _process(_delta: float) -> void:
|
||||
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
_aiming()
|
||||
var can_move := not attack.is_hitting()
|
||||
velocity = movement.movement(velocity, delta, is_on_floor(), can_move)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user