Code: Select all
wolf_X_vector = main_player_wolf->getRotation().X;
wolf_Y_vector = main_player_wolf->getRotation().Y;
wolf_Z_vector = main_player_wolf->getRotation().Z;
Thanks .
Code: Select all
wolf_X_vector = main_player_wolf->getRotation().X;
wolf_Y_vector = main_player_wolf->getRotation().Y;
wolf_Z_vector = main_player_wolf->getRotation().Z;
Yeah, I also get compile errors some times, but there are so many different compile errors possible !!!3DModelerMan wrote:I get a compile error
Aren't they floating-point values? At any rate, the compile error should give enough information for you to deduce the problems.Sudi wrote:I guess that wolf_X_vector, wolf_Y_vector, wolf_Z_vector are vectors like the names say and you are trying to assign an integer to a vector^^
Code: Select all
core::vector3df rotation = node->getRotation();
irr::f32 rotX = rotation.X;
irr::f32 rotY = rotation.Y;
irr::f32 rotZ = rotation.Z;
Your going to want to use trigonometry. Specifically the functions sin() and cos().3DModelerMan wrote:I really apreciate the help you guys have given me so far, even though my questions are kinda dopey.
Thanks .
And by the way, it worked!, now all I have to do is search for what the math to move it was.