Skip to content

Beam collision radius with entities dependent on step size #290

Description

@gamrguy

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions