Phazorknight / Cogito

Immersive Sim Template Project for GODOT 4
MIT License
799 stars 90 forks source link

Hold interaction range cancel #60

Closed OtsoT closed 6 months ago

OtsoT commented 6 months ago

When doing the 'hold X seconds to activate' interaction (like in the demo drawbridge) you can still move clearly out of range. Had fun flinging myself in the air using the drawbridge. :airplane:

Phazorknight commented 6 months ago

Big oof. Shouldn't be too hard to fix, will look into it.

Phazorknight commented 6 months ago

Added the following in 202402.04:

HoldInteraction now checks for interaction_distance: If the player is further away from the object than the InteractionRaycast length, the hold gets interrupted. Designing your HoldInteractions with this in mind should prevent any odd behaviour. I've also set the collision layer of the box behind the TurnWheel to block the interaction raycast, so it should be a bit trickier to play human catapult.