pokepetter / ursina

A game engine powered by python and panda3d.
https://pokepetter.github.io/ursina/
MIT License
2.23k stars 328 forks source link

Fixes MeshColliders for .glb and .bam imported meshes #656

Open Noahnoah55 opened 10 months ago

Noahnoah55 commented 10 months ago

When importing .glb and .bam models and creating a MeshCollider from them, the resulting collider is rotated 90 degrees due to the difference between Ursina and Panda3D's coordinate systems.

I added an extra step in the generation of a MeshCollider from a NodePath to correct for this difference.

Noahnoah55 commented 10 months ago

Uuuuuh this might be more complicated than I thought. Merged recent commits and updated my game project to see the collision meshes flipped an entirely different way.