summaryrefslogtreecommitdiff
path: root/godot/scenes/ballistics/Cannonball.tscn
diff options
context:
space:
mode:
authorAnson Bridges <bridges.anson@gmail.com>2022-09-07 14:07:30 -0400
committerAnson Bridges <bridges.anson@gmail.com>2022-09-07 14:07:30 -0400
commitc232b92e2dde1277324d1f89d0e75ae641e4ac3b (patch)
treee11a5dd52f259c1cc7345baa40b372b304417f00 /godot/scenes/ballistics/Cannonball.tscn
parenta0967ebe815cd229b69fb9578f2288b95b2ddb28 (diff)
reorganized, ladders, vehicle control
Diffstat (limited to 'godot/scenes/ballistics/Cannonball.tscn')
-rw-r--r--godot/scenes/ballistics/Cannonball.tscn44
1 files changed, 44 insertions, 0 deletions
diff --git a/godot/scenes/ballistics/Cannonball.tscn b/godot/scenes/ballistics/Cannonball.tscn
new file mode 100644
index 0000000..83c3942
--- /dev/null
+++ b/godot/scenes/ballistics/Cannonball.tscn
@@ -0,0 +1,44 @@
+[gd_scene load_steps=7 format=2]
+
+[ext_resource path="res://scripts/ballistics/Cannonball.gd" type="Script" id=1]
+
+[sub_resource type="SphereShape" id=1]
+radius = 0.25
+
+[sub_resource type="SphereMesh" id=2]
+radius = 0.2
+height = 0.4
+radial_segments = 8
+rings = 8
+
+[sub_resource type="OpenSimplexNoise" id=4]
+
+[sub_resource type="NoiseTexture" id=5]
+as_normalmap = true
+bump_strength = 8.7
+noise = SubResource( 4 )
+
+[sub_resource type="SpatialMaterial" id=3]
+albedo_color = Color( 0.105882, 0.0980392, 0.0980392, 1 )
+metallic = 0.39
+roughness = 0.63
+normal_enabled = true
+normal_scale = 1.0
+normal_texture = SubResource( 5 )
+
+[node name="Cannonball" type="RigidBody"]
+mass = 10.0
+continuous_cd = true
+contacts_reported = 2
+contact_monitor = true
+can_sleep = false
+script = ExtResource( 1 )
+
+[node name="CollisionShape" type="CollisionShape" parent="."]
+shape = SubResource( 1 )
+
+[node name="MeshInstance" type="MeshInstance" parent="."]
+mesh = SubResource( 2 )
+material/0 = SubResource( 3 )
+
+[connection signal="body_entered" from="." to="." method="_on_collision"]