RemoveCollision() public méthode

Remove a collision with another unit.
public RemoveCollision ( CollisionUnit other ) : void
other CollisionUnit The CollisionUnit to remove the collision from.
Résultat void
Exemple #1
0
 /// <summary>
 /// Update the collision status between this and the <paramref name="other"/> CollisionUnit.
 /// </summary>
 /// <param name="other">The CollisionUnit to update.</param>
 public void UpdateCollisionsWith(CollisionUnit other)
 {
     if (CollidesWith(other))
     {
         AddCollision(other);
         other.AddCollision(this);
     }
     else
     {
         RemoveCollision(other);
         other.RemoveCollision(this);
     }
 }