// Copyright (C) 2006-2012 NeoAxis Group Ltd.
		protected override void OnTick()
		{
			base.OnTick();

			if( PhysicsModel != null )
			{
				foreach( Body body in PhysicsModel.Bodies )
				{
					body.AngularVelocity = Vec3.Zero;

					Angles angles = Rotation.ToAngles();
					if( Math.Abs( angles.Roll ) > 30 || Math.Abs( angles.Pitch ) > 30 )
					{
						Quat oldRotation = body.OldRotation;
						body.Rotation = new Angles( 0, 0, angles.Yaw ).ToQuat();
						body.OldRotation = oldRotation;
					}
				}
			}
		}
