C# Class Nez.PhysicsShapes.Shape

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

Méthodes publiques

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

Private Methods

Méthode Description
recalculateBounds ( Collider collider ) : void

Method Details

clone() public méthode

public clone ( ) : Shape
Résultat Shape

collidesWithLine() public abstract méthode

public abstract collidesWithLine ( Vector2 start, Vector2 end, RaycastHit &hit ) : bool
start Microsoft.Xna.Framework.Vector2
end Microsoft.Xna.Framework.Vector2
hit RaycastHit
Résultat bool

collidesWithShape() public abstract méthode

public abstract collidesWithShape ( Shape other, CollisionResult &result ) : bool
other Shape
result CollisionResult
Résultat bool

containsPoint() public abstract méthode

public abstract containsPoint ( Vector2 point ) : bool
point Microsoft.Xna.Framework.Vector2
Résultat bool

overlaps() public abstract méthode

public abstract overlaps ( Shape other ) : bool
other Shape
Résultat bool

pointCollidesWithShape() public abstract méthode

public abstract pointCollidesWithShape ( Vector2 point, CollisionResult &result ) : bool
point Microsoft.Xna.Framework.Vector2
result CollisionResult
Résultat bool