CartBlanche / MonoGame-Samples

All the Samples that work with MonoGame
https://github.com/MonoGame/MonoGame
712 stars 354 forks source link

BoundingOrientedBox does not correctly intersects with ray when model initially rotated #45

Closed QuantumDeveloper closed 8 years ago

QuantumDeveloper commented 8 years ago

Hi. I am testing your`s implementation of BoundingOrientedBox and found out issue that if object initially has some rotation, intersection with a ray will be not performed correctly, but if I load object without rotation and will rotate it later, intersections with Ray works great.

Is there an issue with OBB, which I should know or this is default behaviour and I should deal with it in another way?

QuantumDeveloper commented 8 years ago

Sorry, it was my fault. My ray was created with incorrect World matrix. Now everything works fine.