We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 68aefef + 0938a48 commit 1113bafCopy full SHA for 1113baf
3d/squash_the_creeps/Player.gd
@@ -26,7 +26,8 @@ func _physics_process(delta):
26
if direction != Vector3.ZERO:
27
# In the lines below, we turn the character when moving and make the animation play faster.
28
direction = direction.normalized()
29
- $Pivot.look_at(position + direction, Vector3.UP)
+ # Setting the basis property will affect the rotation of the node.
30
+ $Pivot.basis = Basis.looking_at(direction)
31
$AnimationPlayer.speed_scale = 4
32
else:
33
$AnimationPlayer.speed_scale = 1
0 commit comments