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
I'm trying to use a matrix 2d as a displacement map on a material mesh, and as args for useHeightField.
The collider seems to be working but I didn't find a way to scale it up so i can have a real terrain.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm trying to use a matrix 2d as a displacement map on a material mesh, and as args for useHeightField.
The collider seems to be working but I didn't find a way to scale it up so i can have a real terrain.
Here is a demo of what i'm experiencing: https://cannon-heightfield-ledouxm.vercel.app/
and here is the source code: https://github.com/ledouxm/cannon-heightfield/blob/main/src/components/Demo.tsx
Thanks
EDIT: just found out about the Debug component and...
![image](https://user-images.githubusercontent.com/32564108/130049206-377ed0e3-f138-42d1-8059-89a96ac6f2b5.png)
my issue wasn't that bad after all.
Beta Was this translation helpful? Give feedback.
All reactions