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

Ideas for 1.0.0 #14

Open
isaac-mason opened this issue Oct 16, 2022 · 0 comments
Open

Ideas for 1.0.0 #14

isaac-mason opened this issue Oct 16, 2022 · 0 comments
Assignees

Comments

@isaac-mason
Copy link
Member

isaac-mason commented Oct 16, 2022

Some things to consider for a 1.0.0 release:


Decide whether physics should continue to run in a web worker

This requires some refinement around the purpose of @react-three/p2.

For websites that use p2 for secondary effects and interactions, running p2 in a web worker is advantageous as webpages will remain interactive - a long physics step won't block the main thread.

But for game-dev purposes, running physics in a separate thread can be a nuisance. Things like character controllers that rely on raycasting are difficult to write in with the hooks, and should ideally be run in the same thread as p2 for performance.

For maintainability reasons, offering both worker and non-worker versions of rt/p2 isn't easy.


Consider a declarative API, rather than the current hooks API

A declarative API should be considered, similar to the one that @react-three/rapier sports.

@isaac-mason isaac-mason self-assigned this Oct 16, 2022
@isaac-mason isaac-mason changed the title Ideas for 1.0 Ideas for 1.0.0 Oct 16, 2022
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