From: brett h. <bha...@ya...> - 2004-10-05 05:30:54
|
body.getRotation() seems to return a long list of values that must be carefully mapped to a matrix. Is there a way to get a simpler value like a vector or quat of a body's rotation? I'm following tutorial3.py here is how its getting and setting rotation. R = body.getRotation() T = mat4() T[0,0] = R[0] T[0,1] = R[1] T[0,2] = R[2] T[1,0] = R[3] T[1,1] = R[4] T[1,2] = R[5] T[2,0] = R[6] T[2,1] = R[7] T[2,2] = R[8] T[3] = (x,y,z,1.0) glPushMatrix() glMultMatrixd(T.toList()) -brett _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com |