ey6es / phantasml

Web-based collaborative "creature lab" for machine learning/AI research and education.
https://www.phantasml.com
MIT License
2 stars 3 forks source link

Handle mirror transforms sensibly when drawing/collision-detecting. #9

Open ey6es opened 6 years ago

ey6es commented 6 years ago

It should be made easy to flip things by using negative scales. This may "just work" with rendering (since we don't do any back face culling), but for collisions (at least), we'll need to check for a negative determinant and reverse the winding order when detected.