C# Class Nez.BoxCollider

Inheritance: Collider
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

BoxCollider() public méthode

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
Résultat Microsoft.Xna.Framework

BoxCollider() public méthode

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.
Résultat Microsoft.Xna.Framework

BoxCollider() public méthode

public BoxCollider ( float width, float height ) : Microsoft.Xna.Framework
width float
height float
Résultat Microsoft.Xna.Framework

BoxCollider() public méthode

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.
Résultat Microsoft.Xna.Framework

ToString() public méthode

public ToString ( ) : string
Résultat string

debugRender() public méthode

public debugRender ( Graphics graphics ) : void
graphics Graphics
Résultat void

setHeight() public méthode

public setHeight ( float height ) : BoxCollider
height float
Résultat BoxCollider

setWidth() public méthode

public setWidth ( float width ) : BoxCollider
width float
Résultat BoxCollider