项目作者: IAmTerror

项目描述 :
This Lua module calculates the "infinite distance" between two sprites and detects the collision between them. Integration of the following specific distance cases: Manhattan distance (K distance with k = 1), Euclidean distance (K distance with k = 2), K distance (with k > 2). Integration of scale factors a and b for sprites.
高级语言: Lua
项目地址: git://github.com/IAmTerror/distances.git
创建时间: 2020-05-26T17:51:54Z
项目社区:https://github.com/IAmTerror/distances

开源协议:

下载


distances

This Lua module calculates the “infinite distance” between two sprites and detects the collision between them. Integration of the following specific distance cases: Manhattan distance (K distance with k = 1), Euclidean distance (K distance with k = 2), K distance (with k > 2). Integration of scale factors a and b for sprites.

alt text

alt text