Tests collision with another sprite animation.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
public bool CollideWith( XSpriteAnimator spriteAnimator ) |
Parameters
- spriteAnimator
- Type: SGP.XSpace..::.XSpriteAnimator
The sprite animation tested for collision.
Return Value
Returns trueTruetruetrue (True in Visual Basic) whether the sprites collide, else falseFalsefalsefalse (False in Visual Basic).
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | spriteAnimator is nullNothingnullptra null reference (Nothing in Visual Basic). |