Closed veillette closed 9 years ago
Ah yes, M * v( 1, 0, 1 ) - M * v( 0, 0, 1 )
(homogeneous vectors) distributes to M * v( 1, 0, 0 )
. Thanks for catching that!
I'll make the fix shortly, and it should free up a lot of those vector allocations you were seeing.
Fixed in 32a2f0072ffaac161e5071290f1658235638b9bf, forgot to tag it.
Thanks!
While looking up the source of allocations in charges and fields, a sizable number of them are involved in the rotation of the node (using setRotation (which itself invoke getRotation)).
In any case, if you carry out the math explicitly, you find that getRotation in Matrix3.js
can be replaced by