Made a lamp post object with collision

This commit is contained in:
Willow Behar
2024-06-02 15:30:16 -05:00
parent 5b67cb1681
commit 7fcaffc1ae
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,15 @@
[gd_scene load_steps=3 format=3 uid="uid://61lt10ktv534"]
[ext_resource type="PackedScene" uid="uid://bihywi2gve5j0" path="res://Assets/Models/LightPost.fbx" id="1_ksctp"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_o8c43"]
height = 5.65653
radius = 0.473027
[node name="Lamp Post" type="StaticBody3D"]
[node name="Root Scene" parent="." instance=ExtResource("1_ksctp")]
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00153413, 2.85853, -0.00286096)
shape = SubResource("CylinderShape3D_o8c43")

View File

@ -4,6 +4,8 @@ extends Node3D
@export var Default_Map:PackedScene
@export var scenes: Array[PackedScene]
signal map_loaded
var current_map
func openMap(path=GlobalSettings.current_map):