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

Ovelapped tiles #11

Open
anatoly-kryzhanovsky opened this issue Oct 3, 2022 · 1 comment
Open

Ovelapped tiles #11

anatoly-kryzhanovsky opened this issue Oct 3, 2022 · 1 comment

Comments

@anatoly-kryzhanovsky
Copy link

Good day
I write some demo and found your project but i have two questions:

  • is project completely dead? there is no updae for a long time, no issue..
  • more practice: for example, i have box with snow terrain at (60, 60, 68, 68). than player enter to snow i want to add some additional acceleration, so i want to detect collision with such boxes (with Cross resolution). Now, suggest, that we have bonuses, that can generated on not occupied cells (including snow). Now, there is possible situation then i have bonus at same position (60, 60, 68, 68).
    So, now my player come to that cell and i receive only one collision. I drill down to sources and method Hit in World class (at line 81) take only nearest hit, so other hits with overlapped boxes will be ignored.
    Can you give me workaround about that issue? or may be i do something wrong?
@anatoly-kryzhanovsky
Copy link
Author

and i found one more case:
for example, i have some distructionable blocks at (12, 12, 4, 4) and (16, 12, 4, 4). now i have a bullet with size (2, 2) at (15, 16) with speed (0, -2), so i try to move it to (15, 14). I expected two collision, but receive only one

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

No branches or pull requests

1 participant