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

Beam collision radius with entities dependent on step size #290

Open
gamrguy opened this issue Apr 8, 2024 · 0 comments
Open

Beam collision radius with entities dependent on step size #290

gamrguy opened this issue Apr 8, 2024 · 0 comments
Labels

Comments

@gamrguy
Copy link
Contributor

gamrguy commented Apr 8, 2024

Describe the bug
When beams check for collision with entities, the checked volume scales in all 3 dimensions with step size, causing inconsistent and undesirable behavior when attempting to use beams on item entities.
A workaround to this is to set the step size to the maximum of 1, which allows the beam to check for entities in a full block.

To Reproduce [Optional]
Steps to reproduce the behavior:

  1. Throw item entities into a horizontal Force beam with the default step size (in the middle of the beam, not the endpoint).
  2. Observe that item entities either land on the ground or get hit by one tick of the beam before resting.
  3. Change the step size to 1.0
  4. Observe that item entities are now reliably affected by the Force beam.

Expected behavior [Optional]
Beam collision radius should not be dependent on step size.

Additional context [Optional]
Crossroads 2.10.2

@gamrguy gamrguy added the bug label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant