aabb-3d icon indicating copy to clipboard operation
aabb-3d copied to clipboard

Type fix and add setPosition method

Open fenomas opened this issue 10 years ago • 2 comments

Hi,

Two small changes:

  1. Change vec property 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
  2. 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!

fenomas avatar Jun 20 '15 07:06 fenomas

Hi... just wondering if you've seen this, or disagree with anything. Cheers!

fenomas avatar Jul 22 '15 08:07 fenomas

Ping!

fenomas avatar Aug 27 '15 03:08 fenomas