Author Topic: Get the exact (x/y/z) location/rotation of a player?  (Read 3322 times)

In other words only math majors can even remotely understand it.

Well you don't really need to understand it.  Just use the reverse of eulerToMatrix...

matrixToEuler.

Does that function exist? In the constants.cs file in v0002 only eulerToMatrix was defined... Unless it's built in?

Yeah, I'll post it if I can find it.

It may also be listed as eulerToQuat and quatToEuler.  I'm at work now, so I'll have to check later.
« Last Edit: August 23, 2007, 11:45:58 AM by Trader »

i was pretty sure i saw it as eulertomatrix

Code: [Select]
%trans = %id.getTransform();
    %x = getWord(%trans,0);
    %y = getWord(%trans,1);
    %z = getWord(%trans,2);