quaternion.h -> bug in function: set(f32 x, f32 y, f32 z)

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

quaternion.h -> bug in function: set(f32 x, f32 y, f32 z)

Post by jox »

irr 0.6 - quaternion.h

There is a little typo in the translation from euler angles to quaternion at line 301:

Original code:

f32 cpcy = cp * cy;
f32 spcy = sp * cy;
f32 cpsy = cp * sy;
f32 spsy = cp * sy;

Fixed code:

f32 cpcy = cp * cy;
f32 spcy = sp * cy;
f32 cpsy = cp * sy;
f32 spsy = sp * sy; // <- cp should be sp
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

thanks!
Post Reply