-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
rendering error: rapier <Physics> provider not detected #253
Comments
Thanks for the issue! Have you tried setting up a global provider? See: https://triplex-docs-git-main-try-triplex.vercel.app/docs/building-your-scene/global-provider (WIP docs). I can raise a PR against ecctrl to resolve this but would love to see if you can yourself as it's good feedback for what we need to improve in docs / code / etc. If you haven't already definitely recommend installing Triplex for VS Code and giving that a whirl too. Have you joined Discord? Join here: https://discord.gg/nBzRBUEs4b. |
The project already has a Physics provider. |
Triplex opens up components in an isolated sandbox so unless the component you're opening sets this context then you need to create a global provider so it picks it up. Right now there is no magic, so you need to teach Triplex :-), if you already have a provider component you can point the Triplex config at it? Assuming it's a default export. |
I’ll make a note to take a look later tonight. |
I forgot to look. How'd you go @hichemfantar? |
test repo: https://github.com/pmndrs/ecctrl
the repo contains an example project in the example folder and the library in src folder
The text was updated successfully, but these errors were encountered: