SamWibatt / GameTree

MIGRATING TO GITLAB Platform independent C++11 object library for game development
GNU General Public License v3.0
0 stars 0 forks source link

GTShape intersection of vector with shape method #12

Open SamWibatt opened 4 years ago

SamWibatt commented 4 years ago

For collisions with nogo areas - take the vector from the character's previous position to their intended position and find the intersection with the shape that is closest to the previous position.

SamWibatt commented 4 years ago

Only needs to be called when the intended position is inside the shape, so not used often, yay. Conserve those cycles like it's 1994 because this might run on arduini