Closed JustMeDaFaq closed 2 years ago
A fellow dev helped me, i will update with solution when tested further! :)
Solution:
NE_CameraSetI(Camera,
PlayerModel->x,PlayerModel->y,PlayerModel->z, // Position
0,0,0, // Look at
0, 4096, 0);
That last piece of code works, but you could also do it like this so that it's more clear:
NE_CameraSetI(Camera,
PlayerModel->x,PlayerModel->y,PlayerModel->z, // Position
0,0,0, // Look at
0, floattof32(1.0), 0);
Hi, im trying to understand the differences when setting the positions of an camera in comparison to setting the position of an model.
Doing:
Works and positions of the PlayerModel and the Camera are the same.
Tho, doing following doesnt work:
I know positions of an Model are declared as an int and are effectifely f32, shouldnt those values be compatible with the cameras NE_CameraSet function? Sorry for the questions!