Page 1 of 1

i want model stop walking

Posted: Wed Jan 04, 2006 11:43 pm
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?

Posted: Thu Jan 05, 2006 12:25 am
by byelan74
I mean stop 'walking' anmation not position.