pull liigub õiges suunas
This commit is contained in:
@@ -26,9 +26,9 @@ func _physics_process(delta: float) -> void:
|
||||
velocity.x = direction.x * SPEED
|
||||
velocity.z = direction.z * SPEED
|
||||
else:
|
||||
velocity.x = move_toward(velocity.x, 0, SPEED)
|
||||
velocity.z = move_toward(velocity.z, 0, SPEED)
|
||||
velocity.x = move_toward(velocity.x, 0.0, SPEED)
|
||||
velocity.z = move_toward(velocity.z, 0.0, SPEED)
|
||||
|
||||
cube_guy.rotation.y = lerp_angle(cube_guy.rotation.y, camera_pivot.rotation.y, delta * turn_speed)
|
||||
cube_guy.rotation.y = lerp_angle(cube_guy.rotation.y, camera_pivot.rotation.y + PI, delta * turn_speed)
|
||||
|
||||
move_and_slide()
|
||||
|
||||
Reference in New Issue
Block a user