C# Class SGDE.Physics.Collision.CollisionChief.CollisionCell

A cell of the CollisionGrid. This contains all the CollisionUnits that intercect this cell.
Datei anzeigen Open project: sgdc/sgdc-old

Public Methods

Method Description
AddCollisionUnit ( CollisionUnit unit ) : void

Add a new CollisionUnit to this CollisionCell.

CollisionCell ( ) : System

Instantiate a new CollisionCell.

RemoveCollisionUnit ( CollisionUnit unit ) : void

Remove a CollisionUnit from this CollisionCell.

Method Details

AddCollisionUnit() public method

Add a new CollisionUnit to this CollisionCell.
public AddCollisionUnit ( CollisionUnit unit ) : void
unit CollisionUnit The CollisionUnit to add.
return void

CollisionCell() public method

Instantiate a new CollisionCell.
public CollisionCell ( ) : System
return System

RemoveCollisionUnit() public method

Remove a CollisionUnit from this CollisionCell.
public RemoveCollisionUnit ( CollisionUnit unit ) : void
unit CollisionUnit The CollisionUnit to remove.
return void