Hello.
I’ve got a really simple problem when I try to rotate a vertice around the Z Axis.
Ex : Rotation around the X Axis.
T1 := cos(RadDegres); T2 := sin(RadDegres); Vert.vX := Vert.vX; Vert.vY := T1 * Vert.vY + T2 * Vert.vZ; Vert.vZ := -T2 * Vert.vY + T1 * Vert.vZ;
This one and the rotation around the Y axis works properly, but the rotation around the Z axis don’t work, it makes a weird rotation in all sens…
Code for Rotation around Z Axis :
T1 := cos(RadDegres); T2 := sin(RadDegres); Vert.vX := T1 * Vert.vX + T2 * Vert.vY; Vert.vY := -T2 * Vert.vX + T1 * Vert.vY; Vert.vZ := Vert.vZ;
Does it a trigo error or what ?
Thanks.