mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 08:05:54 +00:00
Camera fix and broken
This commit is contained in:
parent
91fcd73688
commit
dd9c666995
10 changed files with 202 additions and 139 deletions
|
|
@ -98,7 +98,7 @@ public partial class CameraPlayerDetection : PlayerDetection
|
|||
// Perform raycast
|
||||
var spaceState = GetWorld2D().DirectSpaceState;
|
||||
var query = PhysicsRayQueryParameters2D.Create(GlobalPosition, rayEnd);
|
||||
query.Exclude = new Godot.Collections.Array<Rid> { GetRid() };
|
||||
query.Exclude = [GetRid()];
|
||||
query.CollideWithAreas = true;
|
||||
query.CollideWithBodies = true;
|
||||
query.CollisionMask = collisionMask;
|
||||
|
|
@ -114,7 +114,6 @@ public partial class CameraPlayerDetection : PlayerDetection
|
|||
if (colliderNode is InteractionController interactionController && interactionController == _cachedPlayer)
|
||||
{
|
||||
detected = true;
|
||||
// Handle detection logic here
|
||||
}
|
||||
// Adjust debug line to collision point
|
||||
debugLineEnd = (Vector2)result["position"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue