fix incorrect world transform of rotated objets
This commit is contained in:
parent
a6afdef478
commit
0a70754c2a
|
@ -38,7 +38,7 @@ void Windmill::transform_model_to_world(Object* object, Vertex vertex[], int ver
|
|||
sinus = 1024 * sinf(angle_rad);
|
||||
}*/
|
||||
//if (object->rotation.Null() == false)
|
||||
if (object->axe == N)
|
||||
if (object->axe != N)
|
||||
{
|
||||
float angle_rad = 3.1415 * object->angle / 180.0;
|
||||
cos = 1024 * cosf(angle_rad);
|
||||
|
|
Loading…
Reference in New Issue