diff options
Diffstat (limited to 'godot/scenes/scripts/roblox-cube.gd')
-rw-r--r-- | godot/scenes/scripts/roblox-cube.gd | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/godot/scenes/scripts/roblox-cube.gd b/godot/scenes/scripts/roblox-cube.gd index ac12159..453067b 100644 --- a/godot/scenes/scripts/roblox-cube.gd +++ b/godot/scenes/scripts/roblox-cube.gd @@ -5,17 +5,15 @@ extends Spatial # var a = 2 # var b = "text" func on_collision(other): - print("b") var ap = get_parent().get_node("AudioStreamPlayer") ap.play() # Called when the node enters the scene tree for the first time. func _ready(): - var rb = get_node("RigidBody") + var rb = self rb.apply_impulse(Vector3(), Vector3(40, 1, 10)) rb.connect("body_entered", self, "on_collision") - print("a") # Called every frame. 'delta' is the elapsed time since the previous frame. |