Hi,
With the help of @seanwasere I have this working code but I don’t understand how to do a tween with at(0) to the y-position which is equal to -5
at(0).position doesn’t return x,y, and z…
How to do ?
Hi,
With the help of @seanwasere I have this working code but I don’t understand how to do a tween with at(0) to the y-position which is equal to -5
at(0).position doesn’t return x,y, and z…
How to do ?
Nobody for this ?
you need to use the API’s position.subscribe
Since you are using @react-three/cannon
then you should look at all the demos on its official repo to see if there is anything similar to what you want to achieve.
Also read this README : use-cannon/README.md at b3dad4fe73617221f91a5e31be2ec06e5f98b62c · pmndrs/use-cannon · GitHub
And here is my demo of using position.subscribe
CodeSandbox : cannon-position-subscribe