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
Afficher le fichier Open project: prime31/Nez

Méthodes publiques

Méthode Description
move ( Vector2 motion ) : bool

moves the entity taking collisions into account

onAddedToEntity ( ) : void

Private Methods

Méthode Description
notifyTriggerListeners ( Collider self, Collider other ) : void

Method Details

move() public méthode

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

onAddedToEntity() public méthode

public onAddedToEntity ( ) : void
Résultat void