网格碰撞
返回运动中的两个 3d 网格之间的接触集
例子
var collide = require ( 'mesh-collision' ) ;
var mat4 = require ( 'gl-mat4' ) ;
var transformMat4 = require ( 'gl-vec3/transformMat4' ) ;
var loop = require ( 'frame-loop' ) ;
var lerp = require ( 'mat4-interpolate' ) ;
var teapot = require ( 'teapot' ) ;
var bunny = require ( 'bunny' ) ;
var bodies = [
{
prev : mat4 . create ( ) ,
next : translate
1