blob: 8412feea32e3a89beca6cadfc5b53fb026cec4ef (
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
46
47
48
49
50
51
52
53
54
|
[gd_scene load_steps=8 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]
seamless = true
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 )
[sub_resource type="BoxShape" id=6]
extents = Vector3( 0.286994, 0.293614, 0.250986 )
[node name="Cannonball" type="RigidBody"]
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 )
[node name="PickupArea" type="Area" parent="."]
collision_layer = 2
collision_mask = 2
[node name="CollisionShape" type="CollisionShape" parent="PickupArea"]
shape = SubResource( 6 )
[connection signal="body_entered" from="." to="." method="_on_collision"]
|