well 1st of all center that to 0, i.e to -1000...1000 range, then
normalize it to unit vectors. then you could do something like

var m:Matrix3D = new Matrix3D;
m.sxx = X.x; m.sxy = X.y; m.sxz = X.z;
m.syx = Y.x; m.syy = Y.y; m.syz = Y.z;
m.szx = Z.x; m.szy = Z.y; m.szz = Z.z;
cone.transform = m;


On Wed, Feb 3, 2010 at 12:22 PM, André <[email protected]> wrote:
> Hello everybody,
>
> first let me thank the authors for their great engine!
>
> I´m currently working on the visual representation of sensor data.
> SO what I have is a object (a puppet etAccelerometer that outputs
> three values, one for each X, Y and Z axis.
> these values are roughly in the range [900,2900], so if the object is
> not tilted in any direction
> the output for each value would be around 1900 or every axis.
>
> Now I would like to map these values to a cone in a way that the top
> of the cone points to the direction
> of the object.
>
> Say if I place my object on a flat table with the object pointing to
> the left
> i want my cone to be aligned horizontally and pointing to the left, if
> i put it on it´s back uprigt i want the cone
> to point to the top.
>
> Since my 3d math is rather weak  I´d love if any one of you could help
> me out here.
>
> Thanks,
>
> André
>

Reply via email to