Search found 3 matches

by hellix
Thu Dec 27, 2007 5:15 pm
Forum: Beginners Help
Topic: Rotate, and then, move
Replies: 7
Views: 2709

if(Keys[KEY_UP])
{
core::vector3df _pos=Node->getPosition();
_pos.Z+=1;
Node->setPosition(_pos);
}
I know how to do that. In fact, I want to rotate the axis.

COS & SIN
I tested it. It don't works.
by hellix
Thu Dec 27, 2007 5:12 pm
Forum: Beginners Help
Topic: Rotate, and then, move
Replies: 7
Views: 2709

I know how to move it with the keyboard, and it works.
However, the mesh don't accelerate in the good direction. Always in the same. I want it to go in the direction where it faces (when I rotate it, it will go in another direction than the previous one (because it faces another point in the space)).
by hellix
Thu Dec 27, 2007 5:02 pm
Forum: Beginners Help
Topic: Rotate, and then, move
Replies: 7
Views: 2709

Rotate, and then, move

Hi (sorry for my bad english) I am developing a small game where you control a spaceship with the keyboard. You can rotate it and it can do an acceleration. So, the mesh rotate correctly, but, when I want it to move after, it goes in a puzzling direction (not the good one). Can you help me ? I am se...