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

rendering error: rapier <Physics> provider not detected #253

Open
hichemfantar opened this issue Dec 10, 2024 · 5 comments
Open

rendering error: rapier <Physics> provider not detected #253

hichemfantar opened this issue Dec 10, 2024 · 5 comments
Labels
Question Further information is requested

Comments

@hichemfantar
Copy link

hichemfantar commented Dec 10, 2024

test repo: https://github.com/pmndrs/ecctrl

the repo contains an example project in the example folder and the library in src folder

image

@itsdouges
Copy link
Collaborator

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.

@itsdouges itsdouges added the Question Further information is requested label Dec 10, 2024
@hichemfantar
Copy link
Author

hichemfantar commented Dec 11, 2024

The project already has a Physics provider.
I don't understand why triplex requires setting up another one?

@itsdouges
Copy link
Collaborator

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.

@itsdouges
Copy link
Collaborator

I’ll make a note to take a look later tonight.

@itsdouges
Copy link
Collaborator

I forgot to look. How'd you go @hichemfantar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants