private TryToEscape ( System.Vector3 &position ) : void | ||
position | System.Vector3 | |
return | void |
void TryToEscape(ref Vector3 position)
{
if (++escapeAttempts == EscapeAttemptPeriod && GetVoronoiRegion(ref position) == VoronoiRegion.ABC)
{
escapeAttempts = 0;
state = CollisionState.Plane;
}
}
TriangleConvexPairTester::TryToEscape ( ) : void |