summaryrefslogtreecommitdiff
path: root/ball.tscn
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-05 00:36:03 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-05 00:36:03 +0200
commit2a81306abc47e94c7ffd5173a031baf36bbfcc24 (patch)
treecf0175a26984e616f762055e2374db73e137849a /ball.tscn
parent9c918c4a04a656f1017955bcb772ae8ce7c61089 (diff)
downloadcar-2a81306abc47e94c7ffd5173a031baf36bbfcc24.tar.gz
Implement camera and ball
Diffstat (limited to 'ball.tscn')
-rw-r--r--ball.tscn19
1 files changed, 19 insertions, 0 deletions
diff --git a/ball.tscn b/ball.tscn
new file mode 100644
index 0000000..4caeb27
--- /dev/null
+++ b/ball.tscn
@@ -0,0 +1,19 @@
+[gd_scene load_steps=3 format=2]
+
+[sub_resource type="PhysicsMaterial" id=1]
+bounce = 0.8
+
+[sub_resource type="SphereShape" id=2]
+radius = 3.0
+
+[node name="RigidBody" type="RigidBody"]
+transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 4 )
+physics_material_override = SubResource( 1 )
+
+[node name="CollisionShape" type="CollisionShape" parent="."]
+shape = SubResource( 2 )
+
+[node name="CSGSphere" type="CSGSphere" parent="."]
+radius = 3.0
+radial_segments = 20
+rings = 20