Author Topic: Rotation  (Read 522 times)

Can somebody give me a small tutorial on rotation? (rotation = "0 0 0 0";)

I don't even know what the last 0 is...



I don't know, but use these

http://forum.blockland.us/index.php?topic=27230.0
Helpful. But not helpful enough.

Code: [Select]
function serverCmdRotMe(%client, %x, %y, %z)
{
  %obj = %client.player;
  %position = %obj.position;

  %obj.setTransform(%position SPC eulerToAxis(%x SPC %y SPC %z));
}

Bah, this is confusing. I'll just rotate the model in milkshape. ;-;

Bah, this is confusing. I'll just rotate the model in milkshape. ;-;
Okay what.

I just gave you the code and you're going to rotate it in Milkshape instead?

Tell me what you're trying to do.

I have a static shape (It's a cube) but it's lying on it's side. I just want to turn it 90 degrees.

0 0 1 90

(0 0 1)- It is X Y and Z, and it is a true/false thing. Currently I have Z set to true(1). The 90 is the amount of degrees in which to rotate. This means I would be rotating something 90 degrees on the Z axis.

and it is a true/false thing.
No it isn't :|
You're right about the last number though, but I'm pretty sure the first three are multipliers for that degree for rotation on each axis, i.e. "1 0.5 -1 90" would rotate 90 degrees on the X axis, 45 on the Y axis, and -90 on the Z axis.
I could be wrong though.