Skip to content

Commit d6da7be

Browse files
authored
Fix vector value in bullet example in Instancing with signals (godotengine#8203)
1 parent 8625ccb commit d6da7be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/scripting/instancing_with_signals.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ given velocity:
3030

3131
extends Area2D
3232

33-
var velocity = Vector2.ZERO
33+
var velocity = Vector2.RIGHT
3434

3535
func _physics_process(delta):
3636
position += velocity * delta
@@ -41,7 +41,7 @@ given velocity:
4141

4242
public partial class Bullet : Area2D
4343
{
44-
public Vector2 Velocity { get; set; } = Vector2.Zero;
44+
public Vector2 Velocity { get; set; } = Vector2.Right;
4545

4646
public override void _PhysicsProcess(double delta)
4747
{

0 commit comments

Comments
 (0)