Returns information about collision with another sprite.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public XCollisionInfo GetCollisionWith(
	XSprite sprite
)

Parameters

sprite
Type: SGP.XSpace..::.XSprite
The sprite tested for collision.

Return Value

The XCollisionInfo collision information if the sprite collides with the sprite sprite, or nullNothingnullptra null reference (Nothing in Visual Basic) if none collision happened.

Exceptions

ExceptionCondition
System..::.ArgumentNullException sprite is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also