From abc27d4d6b590fbf6adb2fe136208df0ebe2deeb Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Mon, 6 Jun 2022 04:25:06 +0200 Subject: Better handling, handbrake, follow camera --- ball.tscn | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) (limited to 'ball.tscn') diff --git a/ball.tscn b/ball.tscn index 4caeb27..7556bef 100644 --- a/ball.tscn +++ b/ball.tscn @@ -1,19 +1,31 @@ -[gd_scene load_steps=3 format=2] +[gd_scene load_steps=4 format=2] [sub_resource type="PhysicsMaterial" id=1] -bounce = 0.8 +bounce = 0.65 + +[sub_resource type="SpatialMaterial" id=3] +albedo_color = Color( 0.0705882, 0.0666667, 0.384314, 1 ) +metallic = 0.56 +metallic_specular = 1.0 +emission_enabled = true +emission = Color( 0, 0, 0, 1 ) +emission_energy = 1.0 +emission_operator = 0 +emission_on_uv2 = false [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 ) +mass = 36.0 physics_material_override = SubResource( 1 ) +continuous_cd = true + +[node name="CSGSphere" type="CSGSphere" parent="."] +transform = Transform( 4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0 ) +radial_segments = 24 +rings = 24 +material = SubResource( 3 ) [node name="CollisionShape" type="CollisionShape" parent="."] +transform = Transform( 4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0 ) shape = SubResource( 2 ) - -[node name="CSGSphere" type="CSGSphere" parent="."] -radius = 3.0 -radial_segments = 20 -rings = 20 -- cgit v1.2.3