You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cogito and Godot Engine Version:
Godot 4.3
Cogito beta 202411.01
Description:
When carrying a mug and approaching a raycastable surface the carriable is automatically dropped
Reproduction steps:
In the breakroom, carry a mug and then aim and move toward a wall
The CarryableComponent leave() function is called, but the actual issue lies in the PlayerInteractionComponent setting a carry destination point that exceeds the carriable's drop distance. For example, carry the flashlight toward a wall and when close enough it will move away from the player and rest against the raycasted surface instead of remaining at its carry_distance_offset.
In PlayerInteractionComponent get_interaction_raycast_tip() the destination_point calculation isn't respecting the CarryableComponent carry_distance_offset and moves the carriable toward the raycasted surface and in doing so it moves it beyond the drop distance for the mug, making it appear as being automatically thrown/dropped.
**Expected Behavior: **
Carried object's destination point should be preferred over the interaction raycast's collision point when it is the closer distance away
This produces the expected behavior:
The text was updated successfully, but these errors were encountered:
OvercastInteractive
changed the title
Carriable is dropped when looking at a wall
Carriable is dropped when moved out of drop distance due to moving out to raycast collision point
Nov 21, 2024
Changed the way carryable position is calculated (as pointed out in issue #331 ).
This adds a simple marker3D as a position node, but technically this is not required.
Cogito and Godot Engine Version:
Godot 4.3
Cogito beta 202411.01
Description:
When carrying a mug and approaching a raycastable surface the carriable is automatically dropped
Reproduction steps:
In the breakroom, carry a mug and then aim and move toward a wall
The
CarryableComponent
leave() function is called, but the actual issue lies in thePlayerInteractionComponent
setting a carry destination point that exceeds the carriable's drop distance. For example, carry the flashlight toward a wall and when close enough it will move away from the player and rest against the raycasted surface instead of remaining at its carry_distance_offset.In
PlayerInteractionComponent
get_interaction_raycast_tip() the destination_point calculation isn't respecting theCarryableComponent
carry_distance_offset and moves the carriable toward the raycasted surface and in doing so it moves it beyond the drop distance for the mug, making it appear as being automatically thrown/dropped.**Expected Behavior: **
Carried object's destination point should be preferred over the interaction raycast's collision point when it is the closer distance away
This produces the expected behavior:
The text was updated successfully, but these errors were encountered: