Fixed nested entities stuff
This commit is contained in:
@@ -21,8 +21,8 @@ func getRaycastInteractable() -> EntityInteractable:
|
||||
|
||||
var rayDirection = entityDirection.getDirectionVector()
|
||||
var query = PhysicsRayQueryParameters3D.create(
|
||||
characterBody.position,
|
||||
characterBody.position + (rayDirection * interactRange)
|
||||
characterBody.global_position,
|
||||
characterBody.global_position + (rayDirection * interactRange)
|
||||
)
|
||||
query.collide_with_bodies = true;
|
||||
query.collide_with_areas = true;
|
||||
|
Reference in New Issue
Block a user