C# 클래스 Nez.BoxCollider

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

공개 메소드들

메소드 설명
BoxCollider ( ) : Microsoft.Xna.Framework

zero param constructor requires that a RenderableComponent be on the entity so that the collider can size itself when the entity is added to the scene.

BoxCollider ( Rectangle rect ) : Microsoft.Xna.Framework

creates a BoxCollider and uses the x/y components of the Rect as the localOffset

BoxCollider ( float width, float height ) : Microsoft.Xna.Framework
BoxCollider ( float x, float y, float width, float height ) : Microsoft.Xna.Framework

creates a BoxCollider and uses the x/y components as the localOffset

ToString ( ) : string
debugRender ( Graphics graphics ) : void
setHeight ( float height ) : BoxCollider
setWidth ( float width ) : BoxCollider

메소드 상세

BoxCollider() 공개 메소드

zero param constructor requires that a RenderableComponent be on the entity so that the collider can size itself when the entity is added to the scene.
public BoxCollider ( ) : Microsoft.Xna.Framework
리턴 Microsoft.Xna.Framework

BoxCollider() 공개 메소드

creates a BoxCollider and uses the x/y components of the Rect as the localOffset
public BoxCollider ( Rectangle rect ) : Microsoft.Xna.Framework
rect Microsoft.Xna.Framework.Rectangle Rect.
리턴 Microsoft.Xna.Framework

BoxCollider() 공개 메소드

public BoxCollider ( float width, float height ) : Microsoft.Xna.Framework
width float
height float
리턴 Microsoft.Xna.Framework

BoxCollider() 공개 메소드

creates a BoxCollider and uses the x/y components as the localOffset
public BoxCollider ( float x, float y, float width, float height ) : Microsoft.Xna.Framework
x float The x coordinate.
y float The y coordinate.
width float Width.
height float Height.
리턴 Microsoft.Xna.Framework

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

debugRender() 공개 메소드

public debugRender ( Graphics graphics ) : void
graphics Graphics
리턴 void

setHeight() 공개 메소드

public setHeight ( float height ) : BoxCollider
height float
리턴 BoxCollider

setWidth() 공개 메소드

public setWidth ( float width ) : BoxCollider
width float
리턴 BoxCollider