Replies: 1 comment 1 reply
-
Hi @Nedrow, I'm having trouble understanding your question. I can see how you've set the gravity at 45 degrees, but I don't understand what you are trying to achieve with positions. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I made the land tilted 45 degrees.
And gravity too 45 degrees.
I want see stacked boxes at center of ground.
When this time, how convert position of plane or ground?
this like a,
const posY = useRef( convertY(plane.position, y) );
const posZ = useRef( convertZ(plane.position, z) );
return <>
. <Box position ={[x,posYs, posZ]} />
</>
sandbox:
https://codesandbox.io/s/r3f-cannon-instanced-physics-z1iwd?file=/src/index.js
Beta Was this translation helpful? Give feedback.
All reactions