AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkPhysics.GetNextContact Method

Goes to next next contact in the list started with GetFirstContact.

Syntax
Pascal
class function GetNextContact(out Contact: TAgkContact): Boolean; static;
Parameters 
Description 
out Contact: TAgkContact 
receives information about the contact. 

True if a contact exists or False if there are no more contacts.

Use the Contact parameter to get the sprites and location involved in this contact. When this function returns False, the information in the Contact parameter is undefined. You can move on to the next contact by calling this function again.

Copyright (c) 2012. All rights reserved.