Closed holdwl2016 closed 8 months ago
@holdwl2016 did you ever find a proper way to do this? I've stumbled on to the same exact issue.
My current not-so-great workaround for this is to do a one-time scaling of the geometry to match the desired mesh scale value. You can do this in your case by calling data.scale(0.01, 0.01, 0.01)
or nodes.LOD3spShape.geometry.scale()
once with the desired scale before passing the data to useTrimesh()
. FYI, scale() mutates the original data, so take that into account.
See for more information about the scale method on BufferGeometry.
thank you
direct use cannon-es
I can use scale function: shape.scale.set(0.01, 0.01, 0.01)
use @react-three/cannon
how to use scale now? I didn't find this feature