summaryrefslogtreecommitdiff
path: root/scenes/ballistics/Cannonball.tscn
blob: 294548df3401ab6e3b51f1bd786cc915b01da976 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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"]