mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Level Teleporters
This commit is contained in:
parent
5e357e1a96
commit
7a8bb4311b
26 changed files with 581 additions and 410 deletions
31
3D/Scenes/Props/Level_Teleporter_3D.tscn
Normal file
31
3D/Scenes/Props/Level_Teleporter_3D.tscn
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://bn7hkgapi5oka"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c4e21ceehvqap" path="res://Scripts/Activables/3D/LevelTeleporter3D.cs" id="1_cbs4u"]
|
||||
[ext_resource type="PackedScene" uid="uid://dnofvejpr6lvx" path="res://3D/BlockbenchModels/Teleporter/Teleporter.gltf" id="2_b3mo2"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_jvaa5"]
|
||||
size = Vector3(0.855408, 0.0617218, 0.878296)
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_5c8o5"]
|
||||
height = 0.949707
|
||||
radius = 0.257813
|
||||
|
||||
[node name="LevelTeleporter" type="StaticBody3D"]
|
||||
script = ExtResource("1_cbs4u")
|
||||
TeleportOffset = Vector3(0, 0.4, 0)
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00344848, -0.0301591, 0.000671387)
|
||||
shape = SubResource("BoxShape3D_jvaa5")
|
||||
|
||||
[node name="blockbench_export" parent="." instance=ExtResource("2_b3mo2")]
|
||||
|
||||
[node name="TeleporterTrigger" type="Area3D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="TeleporterTrigger"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.525146, 0)
|
||||
shape = SubResource("CylinderShape3D_5c8o5")
|
||||
|
||||
[connection signal="body_entered" from="TeleporterTrigger" to="." method="_on_body_entered"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue