aabb-3d
aabb-3d copied to clipboard
Type fix and add setPosition method
Hi,
Two small changes:
- Change
vecproperty to explicitly create a gl-vec3, rather than using the passed-in value. This forces all properties to have the same type (i.e. Float32Array) even if user passes in plain arrays - adds
setPosition( [x,y,z] )method (and test cases)
The latter is because I keep accidentally trying to move an aabb by updating box.base values.
Cheers!
Hi... just wondering if you've seen this, or disagree with anything. Cheers!
Ping!