You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Gridmap/scenes/Instance.tscn

28 lines
916 B

[gd_scene load_steps=4 format=3 uid="uid://b1eubi13cfb4a"]
[ext_resource type="Script" path="res://scripts/Instance3D.gd" id="1_64ypb"]
[sub_resource type="CapsuleMesh" id="CapsuleMesh_qsbqh"]
radius = 0.4
height = 1.2
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ed37x"]
radius = 0.4
height = 1.2
[node name="Instance3D" type="CharacterBody3D"]
script = ExtResource("1_64ypb")
[node name="Pivot" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0)
[node name="MeshInstance3D" type="MeshInstance3D" parent="Pivot"]
mesh = SubResource("CapsuleMesh_qsbqh")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0)
shape = SubResource("CapsuleShape3D_ed37x")
[node name="RayCast3D" type="RayCast3D" parent="."]
transform = Transform3D(0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 10, 0)
collision_mask = 128