You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now I am applying the react-three-cannon to do the collision.
I grab a object to hit another object. After two objects collided, the collide events were triggered.
But after that, it became really slow when I try to move the first person camera. Seems like jump into loop.
This two objects are all using useConvexPolyhedron from react three cannon to create convex colliders.
At first,I have the error that "Cannot read property 'x' of undefined".
But After I use the Quickhull.js provided on the other master to create the face value, It's alright.
Although it still performance too bad after two objects hit together.
Did anyone face this before and have some solutions or suggestions for it ?
It will be a good help for me, Thanks!
I will attached code snippet and Quickhull.js file.
Hey,
Now I am applying the react-three-cannon to do the collision.
I grab a object to hit another object. After two objects collided, the collide events were triggered.
But after that, it became really slow when I try to move the first person camera. Seems like jump into loop.
This two objects are all using useConvexPolyhedron from react three cannon to create convex colliders.
At first,I have the error that "Cannot read property 'x' of undefined".
But After I use the Quickhull.js provided on the other master to create the face value, It's alright.
Although it still performance too bad after two objects hit together.
Did anyone face this before and have some solutions or suggestions for it ?
It will be a good help for me, Thanks!
I will attached code snippet and Quickhull.js file.
Code snippet
QuickHull.zip
Here is the link to check the video
https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExanJxdjVxd2hucnZoazBjMDRvenNpb2Zvem1ybzdiMWFlc2Fqcnd0cyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/zXnOyKRopV9qSCmWzg/giphy-downsized-large.gif
The text was updated successfully, but these errors were encountered: