The check collision function performs a collision test between two objects. The only thing you need to have, is a callback function that draws the objects on the surface to a specific position. (ABoundsRect2 specifies the boundsrect of the second object.
Parameters
- AObj1
- is only a pointer that may contain user data that is in connection with the first collision object.
- ABoundsRect1
- specifies the boundsrect of the first object.
- AObj2
- is only a pointer that may contain user data that is in connection with the second collision object.
- ADrawCallback
- is called when one of the objects should be drawn on a specific surface on a specific position. The pointer given in AObj1 or AObj2 will be sent, to indicate which object should be drawn.
- ACollisionCallback
- is called when a collision between the two objects takes place. The pointers to the two given objects are sent. This callback function will be called after the "GetCollisions" function is called.
See also
- TAdCollisionTestDrawProc
- Callback procedure type used by TAdPicelCollisionTester.
- TAdCollisionTestCollisionProc
- Callback procedure type.
|