dimforge / rapier

2D and 3D physics engines focused on performance.
https://rapier.rs
Apache License 2.0
3.77k stars 235 forks source link

setTranslation results in NaN? (Javascript Version) #591

Closed QuickMick closed 4 months ago

QuickMick commented 4 months ago

after creating my body, i want to teleport it to a specific position using setTranslation, but as you see here: setTranslation(0, 15, 0) for the body results in {x: NaN, y: NaN, z: NaN}

i did it using the chrome console, so nothing else is happening and no other body is added to the world grafik

QuickMick commented 4 months ago

nvm, it seems setTranslation needs a vector-object