AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkPhysics.GetFirstContact Method (TAgkContact)

Cycles through the list of all contacts detected in the last physics step.

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

True if a contact exists, or False if there are no 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 with GetNextContact.

Copyright (c) 2012. All rights reserved.