Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: redfox on September 11, 2008, 05:55:19 PM

Title: Run/WalkTo - Changing angular velocity?
Post by: redfox on September 11, 2008, 05:55:19 PM
Hello, I'm trying the RunTo WalkTo methods to make the actor move at different speeds. How can I change the actors angular velocity's rather than just the Velocity? By default, my actor turns too slowly for use during a run animation.

Here is an example of what I would like to do, but adding this.Angular_Velocity = 120; didn't seem to work.

Code: [Select]
method RunTo(x, y)
{
  this.WalkAnimName = "Run";
  this.Velocity = 60;
 /this.Angular_Velocity = 120;
  this.GoTo(x, y);
}
Title: Re: Run/WalkTo - Changing angular velocity?
Post by: Azrael on September 11, 2008, 06:31:28 PM
It's AngularVelocity, without the underscore ;)
Title: Re: Run/WalkTo - Changing angular velocity?
Post by: redfox on September 11, 2008, 06:33:02 PM
Fantastic, I shall give this a try.

Thank You.