VgaGames4

VgaGames4 - collision man-pages

[.. upper level ..]

# struct VG_Coll

Structure for returning a collision.

ELEMENTS

int type | Collision type: one from VG_COLL_TYPES
unsigned int tag | Collision-tag
unsigned int instanceid | Instance-ID of object collided with
const char *objid | Object-ID of the instance-ID
int side | Hit side(s) of object collided with: VG_COLL_SIDES (bitwise or'ed)
int percent | Overlapping in percent (distance of both center-pixels)

SEE ALSO
vg4->collision->setpos()