added a basic ball that properly inverts velocity when colliding with a world boundary. my balls are getting stuck on each other tho
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://cbygje4vi2rkv"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/boundary.gd" id="1_dkemt"]
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_dxkod"]
|
||||
|
||||
[node name="Boundary" type="CollisionShape2D"]
|
||||
shape = SubResource("WorldBoundaryShape2D_dxkod")
|
||||
debug_color = Color(0.878431, 0, 0.415686, 0.419608)
|
||||
script = ExtResource("1_dkemt")
|
||||
Reference in New Issue
Block a user