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

how player collision? #13

Open
zhaishengfu opened this issue Oct 19, 2021 · 0 comments
Open

how player collision? #13

zhaishengfu opened this issue Oct 19, 2021 · 0 comments

Comments

@zhaishengfu
Copy link

wonderful projects, thanks。
I have seen noita gdc talk and your answer for "rigidbody collision", and you said you have "pixel perfect player collision" . i wonder how you do that for realistic sand. for example:

  1. when people falling to sand, it will trap in it, and some sand will fly to the air
  2. when people move in sand, the speed will slow, and sand will also change
  3. when people swim in water, water will move

the way i can think is: make a mask image for the player, and when the pixel is player mask, it will do the logic, but how to do the logic(for example, player move in sand)

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