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
파일 보기 프로젝트 열기: prime31/Nez

공개 메소드들

메소드 설명
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