diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-06 04:25:06 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-06 04:25:19 +0200 |
| commit | abc27d4d6b590fbf6adb2fe136208df0ebe2deeb (patch) | |
| tree | e1cb6eccc8958a99b6432faf9d2fd459d30b589c /ball.tscn | |
| parent | 3cb24b9d4d23b875cc7719c56cd4a664a9ec1b19 (diff) | |
| download | car-abc27d4d6b590fbf6adb2fe136208df0ebe2deeb.tar.gz | |
Better handling, handbrake, follow camera
Diffstat (limited to 'ball.tscn')
| -rw-r--r-- | ball.tscn | 30 |
1 files changed, 21 insertions, 9 deletions
@@ -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 |
