From d3998186c9795f2a85148cd5bcfa1bd5b6226cfb Mon Sep 17 00:00:00 2001 From: Anson Bridges Date: Wed, 31 Aug 2022 00:26:34 -0700 Subject: Initialize repo --- scenes/ballistics/Cannonball.tscn | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 scenes/ballistics/Cannonball.tscn (limited to 'scenes/ballistics/Cannonball.tscn') diff --git a/scenes/ballistics/Cannonball.tscn b/scenes/ballistics/Cannonball.tscn new file mode 100644 index 0000000..294548d --- /dev/null +++ b/scenes/ballistics/Cannonball.tscn @@ -0,0 +1,45 @@ +[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.15 + +[sub_resource type="SphereMesh" id=2] +radius = 0.15 +height = 0.3 +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"] +collision_layer = 5 +collision_mask = 15 +mass = 10.0 +continuous_cd = true +contacts_reported = 2 +contact_monitor = true +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"] -- cgit v1.2.3