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

Objects phase through each other #11

Open
1j01 opened this issue Aug 26, 2024 · 1 comment
Open

Objects phase through each other #11

1j01 opened this issue Aug 26, 2024 · 1 comment
Labels
version:three.js The THREE.js version of the project version:tic-80 The TIC-80 fantasy console version of the project

Comments

@1j01
Copy link
Owner

1j01 commented Aug 26, 2024

Sheets in particular don't stay on the correct side of each other.

Three.js version

I could try upping the timesteps or something, but maybe cannon.js / cannon-es just isn't up to the task of handling collisions between thin objects.

TIC-80 version

I also have this problem in my custom point-based physics in the TIC-80 version.
I could add constraints that say a particle is meant to be on a particular side of a line, and remove these constraints when the point's projection onto the line would be outside the line segment, and add it when it returns to within the slab bounded by perpendicular lines to the line segment's ends.
I feel like I was planning this but was put off by lackluster performance of the physics code so far. It seems like the QuickJS runtime is too slow, and I'm not super interested in hyper-optimizing for an artificially/unnecessarily slow architecture. But it's been a while since I looked at my code, so I don't really know where I'm at. Who knows, maybe I already have some kind of constraint like this but it just doesn't work.

P.S. not sure this should be one issue or two

@1j01 1j01 added version:three.js The THREE.js version of the project version:tic-80 The TIC-80 fantasy console version of the project labels Aug 26, 2024
@1j01
Copy link
Owner Author

1j01 commented Aug 30, 2024

Improved Three.js version in b5a8768

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
version:three.js The THREE.js version of the project version:tic-80 The TIC-80 fantasy console version of the project
Projects
None yet
Development

No branches or pull requests

2 participants
@1j01 and others