Adding endpoint to only get locations visible to character
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
[gd_scene load_steps=4 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/Characters/location_player.gd" id="1_player_script"]
|
||||
[ext_resource type="PackedScene" path="res://assets/models/TestCharAnimated.glb" id="2_model"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_player"]
|
||||
|
||||
[node name="LocationPlayer" type="RigidBody3D"]
|
||||
script = ExtResource("1_player_script")
|
||||
camera_path = NodePath("Camera3D")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
||||
shape = SubResource("SphereShape3D_player")
|
||||
|
||||
[node name="TestCharAnimated" parent="." instance=ExtResource("2_model")]
|
||||
transform = Transform3D(-0.9998549, 0, 0.01703362, 0, 1, 0, -0.01703362, 0, -0.9998549, 0, 0, 0)
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(0.9998477, 0, -0.017452406, 0.0066714617, 0.9238795, 0.38262552, 0.016124869, -0.38268343, 0.92373866, 0, 6, 10)
|
||||
current = true
|
||||
fov = 49.0
|
||||
|
||||
[node name="SpotLight3D" type="SpotLight3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.906308, -0.422618, 0, 0.422618, 0.906308, 0, 1.7, -0.35)
|
||||
visible = false
|
||||
spot_range = 30.0
|
||||
spot_angle = 25.0
|
||||
Reference in New Issue
Block a user