Colliders on Bevy meshes don't respect scale on initial tick #417
Labels
A-Geometry
A-Integration
very bevy specific
C-Bug
Something isn't working
D-Medium
P-Medium
S-not-started
Work has not started
Happening on
bevy = 0.11
andbevy_rapier3d = 0.22.0
When I load a GLTF Scene that has a
scale
transform that downscales the scene and spawn Colliders for its meshes, the Colliders don't match the scale until the 2nd frame.It seems like the Colliders are always double the size of the scaled mesh, no matter what
scale
I set, so long as it's< 1.0
. For example, I tried spawning a scene with scale0.005
, and the debug rendered colliders are double the mesh sizes (not the original1.0
scale).I was able to workaround the issue by simply running the system twice, and on the 2nd iteration, it auto fixes itself: https://github.com/spoorn/mangovillage/blob/3d/client/src/physics/mod.rs#L17
I thought maybe this was due to meshes taking a second to load, but I've tried putting time delays, tick delays (as in waiting 1000 frames before spawning the Colliders), checking if the assets are fully loaded, but the same problem always happens.
I have an MVP here: https://github.com/spoorn/mangovillage/blob/3d/mvp/src/main.rs if needed, clone the repo on branch
3d
and runcargo run -p mvp
.Screenshot:
The text was updated successfully, but these errors were encountered: