Friday, December 20, 2019

Last GCollision Update (of the year)

In the last update, we have decided to priority batch implementing functions based on what most Gateware users would require. Since that decision, I have confirmed about 5 functions passing their tests. I also had to review which functions would be delayed in order to implement the pre-requisites for them. An additional change is modifying the Separation Distance between two shapes which calculates the distance between two shapes unless intersecting ( in which it would return 0). In many of the function implementations that I explored, it became pretty apparent that there was a lot of value to be had from the squared distance between two shapes thus saving n amount of square roots per call. This would be up to the caller to decide the amount of precision they required from the distance. In order to offer more clarity as well, the name is going to become SqDistance. I also implemented OBB vs OBB which is probably one of the costlier functions in the library unlike sphere to sphere and AABB to AABB which are nearly identical in terms of performance. Anyway, I am going to leave you to have a wonderful winter break and will be posting next year!

The possible results from some of the GCollisions functions
When you rapidly instantiated AABBs with a quick mouse and drag option

No comments:

Post a Comment