This commit is contained in:
parent
78683c9539
commit
9a2314b3ad
5 changed files with 15 additions and 1 deletions
|
@ -193,6 +193,12 @@ void CNpcSmallJellyfishBackgroundEnemy::processUserCollision( CThing *thisThing
|
|||
otherDelta.vy = -otherDelta.vy;
|
||||
}
|
||||
|
||||
if ( !otherDelta.vx && !otherDelta.vy )
|
||||
{
|
||||
otherDelta.vx = ( 1 * xDist ) / abs( xDist );
|
||||
otherDelta.vy = ( 1 * yDist ) / abs( yDist );
|
||||
}
|
||||
|
||||
Pos.vx += otherDelta.vx;
|
||||
Pos.vy += otherDelta.vy;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue