fix incorrect world transform of rotated objets

This commit is contained in:
Lephenixnoir 2023-01-02 14:49:11 +01:00
parent a6afdef478
commit 0a70754c2a
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 1 additions and 1 deletions

View File

@ -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);