XNACS1Lib: CSS490 Spring 2011
Determines if this primitive collides with the otherPrimitive. If true, pos is the colliding position.

Namespace: XNACS1Lib
Assembly: XNACS1Lib (in XNACS1Lib.dll) Version: 1.0.0.0

Syntax

C#
public bool Collided(
	XNACS1Primitive otherPrimitive,
	Vector2 pos
)

Parameters

otherPrimitive
Type: XNACS1Lib..::..XNACS1Primitive
the other primitive.
pos
Type: Vector2
If two primitives collide, this is the "average" of all the possible colliding positions.

Return Value

True: if the two primitives has collided. Pos is the approximated colliding position. False: if the two primitives do not collide, (Pos is undefined in this case).

See Also