C# 클래스 Nez.PhysicsShapes.Shape

파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 메소드들

메소드 설명
clone ( ) : Shape
collidesWithLine ( Vector2 start, Vector2 end, RaycastHit &hit ) : bool
collidesWithShape ( Shape other, CollisionResult &result ) : bool
containsPoint ( Vector2 point ) : bool
overlaps ( Shape other ) : bool
pointCollidesWithShape ( Vector2 point, CollisionResult &result ) : bool

비공개 메소드들

메소드 설명
recalculateBounds ( Collider collider ) : void

메소드 상세

clone() 공개 메소드

public clone ( ) : Shape
리턴 Shape

collidesWithLine() 공개 추상적인 메소드

public abstract collidesWithLine ( Vector2 start, Vector2 end, RaycastHit &hit ) : bool
start Microsoft.Xna.Framework.Vector2
end Microsoft.Xna.Framework.Vector2
hit RaycastHit
리턴 bool

collidesWithShape() 공개 추상적인 메소드

public abstract collidesWithShape ( Shape other, CollisionResult &result ) : bool
other Shape
result CollisionResult
리턴 bool

containsPoint() 공개 추상적인 메소드

public abstract containsPoint ( Vector2 point ) : bool
point Microsoft.Xna.Framework.Vector2
리턴 bool

overlaps() 공개 추상적인 메소드

public abstract overlaps ( Shape other ) : bool
other Shape
리턴 bool

pointCollidesWithShape() 공개 추상적인 메소드

public abstract pointCollidesWithShape ( Vector2 point, CollisionResult &result ) : bool
point Microsoft.Xna.Framework.Vector2
result CollisionResult
리턴 bool