[ODE] dAMoterUser , angle between to vectors and possible winding problem

Graham Fyffe gfyffe at gmail.com
Thu May 5 17:12:47 MST 2005


You might try a method that's based on cross products, instead of dot
products, since cross products contain sign information.

- Graham

On 5/3/05, jnilson_99 at yahoo.com <jnilson_99 at yahoo.com> wrote:
> 
> Could someone look at the following url and tell me if
> it's an adequate way to find the angle between two
> vectors for use by dJointSetAMotorAngle.
> 
> www.jtaylor1142001.net/calcjat/Solutions/VDotProduct/VDPTheta3D.htm
> 
> i'm using a ball and socket with an amotor in
> dAMotorUser mode. when i use the "classic" method
> above for finding the angle between two vectors(i.e.
> the x,y,z axis of the body and world rotation
> matrixes), my joint flips out.
> 
> which makes me think maybe i'm not including "winding"
> order into the angle information. is this important
> for getting the correct angle to send to ode?
> 
> thanks,
> 
> john
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>



More information about the ODE mailing list