Almost fixed entities

This commit is contained in:
2025-05-12 21:00:13 -05:00
parent 828ff03e56
commit a575b8a47d
13 changed files with 158 additions and 79 deletions

View File

@@ -1,27 +1 @@
class_name Rosa extends CharacterBody3D
# var interactRange = 0.7;
# func updateOverworldLogic(delta) -> void:
# # Check if interact button is pressed
# if(Input.is_action_just_pressed("interact")):
# var rayDirection = getDirectionVector();
# # cast ray
# var query = PhysicsRayQueryParameters3D.create(
# position,
# position + (rayDirection * interactRange)
# )
# query.collide_with_areas = true
# query.exclude = [self]
# var result = get_world_3d().direct_space_state.intersect_ray(query)
# if result and result.collider:
# var collider = result.collider
# if(collider.has_method("interact")):
# collider.interact(self)
# if Input.is_action_just_pressed("pause"):
# PAUSE.playerPauseToggle();