schteppe/cannon.js — pull request #114 by timmutton (2013-12-09 22:24:44+00:00)
Title: Added array access to vec3 and quat

A minor change, mainly to make the above classes integrate nicer with glMatrix, e.g. mat4.translate(modelMatrix, modelMatrix, [rigidbody.position.x, rigidbody.position.y, rigidbody.position.x]) now becomes mat4.translate(modelMatrix, modelMatrix, rigidbody.position.toArray())