C# Класс Nez.Mover

helper class illustrating one way to handle movement taking into account all Collisions including triggers. The ITriggerListener interface is used to manage callbacks to any triggers that are breached while moving. An object must move only via the Mover.move method for triggers to be properly reported. Note that multiple Movers interacting with each other will end up calling ITriggerListener multiple times.
Наследование: Component
Показать файл Открыть проект

Открытые методы

Метод Описание
move ( Vector2 motion, CollisionResult &collisionResult ) : bool

moves the entity taking collisions into account

onAddedToEntity ( ) : void

Описание методов

move() публичный Метод

moves the entity taking collisions into account
public move ( Vector2 motion, CollisionResult &collisionResult ) : bool
motion Microsoft.Xna.Framework.Vector2 Motion.
collisionResult CollisionResult Collision result.
Результат bool

onAddedToEntity() публичный Метод

public onAddedToEntity ( ) : void
Результат void