Tests collision with another sprite.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
Parameters
- sprite
- Type: SGP.XSpace..::.XSprite
The sprite tested for collision.
- distance
- Type:
System..::.Single
%
The distance between sprites.
Return Value
Returns trueTruetruetrue (True in Visual Basic) whether the sprites collide, else falseFalsefalsefalse (False in Visual Basic).
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | sprite is nullNothingnullptra null reference (Nothing in Visual Basic). |