C# Class Nez.ProjectileMover

moves taking collision into account only for reporting to any ITriggerListeners. The object will always move the full amount so it is up to the caller to destroy it on impact if desired.
Inheritance: Component
Mostra file Open project: prime31/Nez

Public Methods

Method Description
move ( Vector2 motion ) : bool

moves the entity taking collisions into account

onAddedToEntity ( ) : void

Private Methods

Method Description
notifyTriggerListeners ( Collider self, Collider other ) : void

Method Details

move() public method

moves the entity taking collisions into account
public move ( Vector2 motion ) : bool
motion Microsoft.Xna.Framework.Vector2 Motion.
return bool

onAddedToEntity() public method

public onAddedToEntity ( ) : void
return void