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

Add SnapPath #685

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Add SnapPath #685

wants to merge 18 commits into from

Commits on Oct 3, 2024

  1. Allow other 'SnapZone' collision shapes

    Only set radius if the collision shape has that property, to allow things like boxes or polygons for SnapPath.
    squidt committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    90ee659 View commit details
    Browse the repository at this point in the history
  2. Add SnapPath

    squidt committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    86cb8ec View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2024

  1. Configuration menu
    Copy the full SHA
    acae0b5 View commit details
    Browse the repository at this point in the history
  2. Fix missing connections

    squidt committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    e56582e View commit details
    Browse the repository at this point in the history
  3. Add demo objects for SnapPath

    squidt committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    17c73a2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fc7f218 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0c90aa2 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2024

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

Commits on Oct 16, 2024

  1. Fix typo

    squidt committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    f996eb0 View commit details
    Browse the repository at this point in the history
  2. Add XRToolsSnapPathGuide

    squidt committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    c756662 View commit details
    Browse the repository at this point in the history
  3. Add XRToolsPathGuide example

    Adds to 'picatinny_scope' and sets up 'picatinny_rail' to be more accurate.
    squidt committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    2f28fed View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. Fix brute force code

    Previously adding a snap_interval would move objects one snap_interval forward and prevent objects from snapping backwards over the edge of the path. This solution checks and solves for this edge case. If the object were to snap its front (p1) further back than the max-backwards position (path_p2 + _length) it will round up to the nearest snap_interval, moving it forwards.
    - Add clarifying comments
    squidt committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    2d18de9 View commit details
    Browse the repository at this point in the history
  2. Move necessary checks to top

    squidt committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    472f0ae View commit details
    Browse the repository at this point in the history
  3. Fix bug from 2d18de9

    more_snap should have been given p1_new instead of ideal_snap. Previously both values would be the same. Now works as expected, the PicatinnyScope in the demo scene will snap forward on the rail instead of overhanging when placed at the very back of the rail.
    squidt committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    ba3e80d View commit details
    Browse the repository at this point in the history
  4. Add support for stash sounds

    squidt committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    adacc0b View commit details
    Browse the repository at this point in the history
  5. Use placed pickable object's collision shapes

    When a pickable object is placed on a snap_path the pickable's CollisionShape3Ds are used to detect grabbing from the rail. This behavior is more intuitive for the class user and prevents desync between a temp snap_zone's automatic circle shape and the pickable. It will be more computationally expensive depending on the pickable's shapes.
    
    - Remove errors from missing expected children by using has_node() before get_node()
    squidt committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    3c40615 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    62c9906 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2024

  1. Make gdlint compliant

    - Shorten descriptions
    - Reorder 'extends'
    - Remove whitespace
    - Remove unused function
    - Remove unnecessary else: return
    - Fix 'start_xr.gd' static variable declared out of order
         - Unsure if this fix should be in this PR, but it clears the last of the gdlint errors even though this file was not previously changed in this PR.
    squidt committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    e1ca3e1 View commit details
    Browse the repository at this point in the history