diff options
| author | Anson Bridges <bridges.anson@gmail.com> | 2022-08-31 00:26:34 -0700 |
|---|---|---|
| committer | Anson Bridges <bridges.anson@gmail.com> | 2022-08-31 00:26:34 -0700 |
| commit | d3998186c9795f2a85148cd5bcfa1bd5b6226cfb (patch) | |
| tree | ba5cae524562818ee38da48dd09b0b42a733e1d8 /scenes/ballistics/Cannonball.tscn | |
Initialize repo
Diffstat (limited to 'scenes/ballistics/Cannonball.tscn')
| -rw-r--r-- | scenes/ballistics/Cannonball.tscn | 45 |
1 files changed, 45 insertions, 0 deletions
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"] |
