project-dung/scenes/rock.tscn
2022-08-18 19:17:02 -07:00

35 lines
844 B
Plaintext

[gd_scene load_steps=5 format=2]
[ext_resource path="res://scripts/rock.gd" type="Script" id=1]
[sub_resource type="PhysicsMaterial" id=9]
friction = 0.75
bounce = 0.5
[sub_resource type="SphereShape" id=7]
radius = 4.0
[sub_resource type="SphereMesh" id=8]
radius = 4.0
height = 8.0
[node name="rock" type="RigidBody"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4, 0 )
mass = 5.0
physics_material_override = SubResource( 9 )
axis_lock_linear_y = true
script = ExtResource( 1 )
[node name="CollisionShape" type="CollisionShape" parent="."]
shape = SubResource( 7 )
[node name="MeshInstance" type="MeshInstance" parent="."]
mesh = SubResource( 8 )
[node name="hit_box" type="Area" parent="."]
collision_layer = 40
collision_mask = 0
[node name="CollisionShape" type="CollisionShape" parent="hit_box"]
shape = SubResource( 7 )