pokepetter / ursina

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

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

Open Noahnoah55 opened 5 months ago

Noahnoah55 commented 5 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 5 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.