How to perform this very simple object movement? #214
-
See demo: A raycaster (using onpointermove event) moves the stick to different positions. Using the use-cannon api, that's const [pawnRef, pawnApi] = useCylinder(...)
...
function onMove(e) {
pawnApi.position.set(...)
} As you can see, we are not supposed to move |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
from what i have read cannon misses something, i don't know the technical details, but it can't detect collisions if the object moves too fast. i had the sam trouble with some mini games i've made, ping pong and arkanoid, it doesn't really lend itself to that. but i also don't know how much it would cost to implement it in cannon. @stockhuman @marcofugaro |
Beta Was this translation helpful? Give feedback.
from what i have read cannon misses something, i don't know the technical details, but it can't detect collisions if the object moves too fast. i had the sam trouble with some mini games i've made, ping pong and arkanoid, it doesn't really lend itself to that. but i also don't know how much it would cost to implement it in cannon. @stockhuman @marcofugaro