|
From: Michael S. <Mic...@gm...> - 2002-04-12 18:07:33
|
> >That doesn't work. The result always is (0,0,0). >:o( >I inserted in NodeSound::render() this code: >***snip*** >VrmlMatrix.MV = rc.getMatrix(); >SFVec3f o(0,0,0); >SFVec3f pos; >MV.multMatrixVec(o, pos); first you may use MV.multVecMatrix(o,pos) and you may use the homogenous Coords, try it again for my distance determination I do the same and i don't get 0,0,0,0 I suppose, this proceeding will not include other transformations of parental Transform nodes that translation. yes it does. Micha. |