C# Class xnapunk.colliders.Collider

Datei anzeigen Open project: Gnoll/XNAPunk Class Usage Examples

Public Properties

Property Type Description
CanCollide bool
Entity System.Entity
Offset Vector2

Public Methods

Method Description
Collide ( Collider c1, Collider c2 ) : bool
Collider ( ) : System
Collider ( Vector2 offset ) : System
IntersectsLine ( Vector2 start, Vector2 end, float lineWidth ) : bool
IntersectsPoint ( Vector2 point ) : bool
LinesIntersect ( Vector2 aStart, Vector2 aEnd, Vector2 bStart, Vector2 bEnd ) : bool
Type ( ) : ColliderType

Private Methods

Method Description
CollideCircCirc ( CircleCollider a, CircleCollider b ) : bool
CollideRectCirc ( RectangleCollider a, CircleCollider b ) : bool
CollideRectRect ( RectangleCollider a, RectangleCollider b ) : bool

Method Details

Collide() public static method

public static Collide ( Collider c1, Collider c2 ) : bool
c1 Collider
c2 Collider
return bool

Collider() public method

public Collider ( ) : System
return System

Collider() public method

public Collider ( Vector2 offset ) : System
offset Vector2
return System

IntersectsLine() public abstract method

public abstract IntersectsLine ( Vector2 start, Vector2 end, float lineWidth ) : bool
start Vector2
end Vector2
lineWidth float
return bool

IntersectsPoint() public abstract method

public abstract IntersectsPoint ( Vector2 point ) : bool
point Vector2
return bool

LinesIntersect() public static method

public static LinesIntersect ( Vector2 aStart, Vector2 aEnd, Vector2 bStart, Vector2 bEnd ) : bool
aStart Vector2
aEnd Vector2
bStart Vector2
bEnd Vector2
return bool

Type() public abstract method

public abstract Type ( ) : ColliderType
return ColliderType

Property Details

CanCollide public_oe property

public bool CanCollide
return bool

Entity public_oe property

public Entity,System Entity
return System.Entity

Offset public_oe property

public Vector2 Offset
return Vector2