i want model stop walking

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
byelan74
Posts: 28
Joined: Sat Dec 24, 2005 11:29 am

i want model stop walking

Post by byelan74 »

i set my model walk

Code: Select all

case KEY_KEY_W:
						{
							if (status_act != WALK)
								ModelAction(WALK);
							facing = core::vector3df( sin( ( Mynode->getRotation().Y + 180) * core::PI/180.0f ), 0, cos( ( Mynode->getRotation().Y + 180 ) * core::PI/180.0f ) ); 
							facing.normalize(); 
							core::vector3df newPos = (facing*8.0f) + Mynode->getPosition(); 
							Mynode->setPosition( newPos ); 
													break;
						}
but when i did not press 'W', the model doesnt stop walking.

can i make it stop?
byelan74
Posts: 28
Joined: Sat Dec 24, 2005 11:29 am

Post by byelan74 »

I mean stop 'walking' anmation not position.
Post Reply