Skip to content

[#75] Improve item drop system#95

Merged
mihaid11 merged 2 commits into
devfrom
mihai/item_drop_issue
Dec 21, 2025
Merged

[#75] Improve item drop system#95
mihaid11 merged 2 commits into
devfrom
mihai/item_drop_issue

Conversation

@mihaid11

Copy link
Copy Markdown
Owner

Title

[#75] Improve item drop system

Description

What changes did you make?
Added a function that calculates the drop position gradually until a collision with an entiy or maximum distance is reached.

Why are these changes needed?
Dropped item position was just an offset from the character position, neglecting game entities, which resulted in items going through entities.

Related Issue:
Fixes #75

Type of Change

  • Bug fix
  • New feature
  • Code Refactor
  • Documentation update

Checklist

  • Self-Review: I checked my own changes for mistakes.
  • Docs: Updated documentation if required.
  • Zero Warnings: Changes don’t introduce new compiler/linter warnings.

Signed-off-by: Mihai Dumitrescu <mihairazvand1@gmail.com>
Signed-off-by: Mihai Dumitrescu <mihairazvand1@gmail.com>
@mihaid11 mihaid11 force-pushed the mihai/item_drop_issue branch from 0d16b17 to 2d0d00b Compare December 21, 2025 16:20
@mihaid11 mihaid11 merged commit 942be25 into dev Dec 21, 2025
6 checks passed
@mihaid11 mihaid11 deleted the mihai/item_drop_issue branch December 21, 2025 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve item drop system

1 participant