C# Class Nez.PhysicsShapes.Shape

ファイルを表示 Open project: prime31/Nez Class Usage Examples

Public Methods

Method 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

Method Description
recalculateBounds ( Collider collider ) : void

Method Details

clone() public method

public clone ( ) : Shape
return Shape

collidesWithLine() public abstract method

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

collidesWithShape() public abstract method

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

containsPoint() public abstract method

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

overlaps() public abstract method

public abstract overlaps ( Shape other ) : bool
other Shape
return bool

pointCollidesWithShape() public abstract method

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