Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interaction Ray + Shapecasting for easier object interaction #281

Merged
merged 4 commits into from
Sep 22, 2024

Commits on Sep 19, 2024

  1. Included shapecasting to the InteractionRaycast.gd along with highlig…

    …hters to debug its behavior
    
    This commit modifies the existing InteractionRaycast.gd and to a lesser extent the PlayerInteractionComponent.gd.
    
    InteractionRaycast now uses a shapecast when the raycast doesn't hit a valid collider. If the shapecast hits multiple valid colliders it will use a 'hotspot' and judge distances between it and valid colliders to determine which object the player is more likely intending to pick up.
    
    There is a known issue regarding the ShapeCast3D node reference being lost on scene change.
    OvercastInteractive committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    170309f View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. Configuration menu
    Copy the full SHA
    fbee815 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2024

  1. Fixed interaction raycast issues

    - Turned the Interaction Raycast into a packed scene, to keep child node structure consistent. This should fix reference issues with the Enemy using an interaction raycast.
    - Updated the player and enemy packed scene to use said interaction raycast packed scene.
    - Added the option to turn debug shapes on/off.
    Phazorknight committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    69323ea View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2024

  1. Making sure debug shapes are hidden when disabled

    - Turn debug shapes off on ready if they're disabled and ensure they don't turn on any point while playing
    - Removed a null ref check having to do with the ShapeCast3D not found for enemy interaction raycast on scene change
    OvercastInteractive committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    c6c15f8 View commit details
    Browse the repository at this point in the history