This commit is contained in:
parent
983fd7f27e
commit
297cce9964
1 changed files with 11 additions and 0 deletions
|
@ -176,6 +176,17 @@ void CNpcBranchPlatform::processMovement( int _frames )
|
||||||
|
|
||||||
m_angularVelocity += angularForce;
|
m_angularVelocity += angularForce;
|
||||||
}
|
}
|
||||||
|
else if ( ( getRnd() % 50 ) == 0 )
|
||||||
|
{
|
||||||
|
s16 angularForce = 6 * _frames;
|
||||||
|
|
||||||
|
if ( m_reversed )
|
||||||
|
{
|
||||||
|
angularForce = -angularForce;
|
||||||
|
}
|
||||||
|
|
||||||
|
m_angularVelocity += angularForce;
|
||||||
|
}
|
||||||
|
|
||||||
s32 resistance = -( 5 * _frames * newAngle ) >> 8;
|
s32 resistance = -( 5 * _frames * newAngle ) >> 8;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue