Skip to content

Add physics to Instance component #807

Answered by mwmwmw
netgfx asked this question in Q&A
Discussion options

You must be logged in to vote

Some example code would help sort out your issue.

If you're using @react-three/cannon, don't forget to wrap your physics objects in the <Physics> component.

Here is a working example https://codesandbox.io/s/usecannon-physics-basic-example-y2t7tu?file=/src/index.js

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Dan0net
Comment options

Answer selected by gsimone
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants