EvilEngine/TRIG

This asset defines an entry for a trigger, a volume of space which can detect what happens within it and send events to other assets accordingly.

The triggers have their own position coordinates below, but they use the Position values in the Placeable header as the pivot point for rotation (rotation is done as if that point was the origin). Apparently, all 3 trigger types can be rotated this way.

Format
Triggers are entity assets, so they start with their 0x54 byte header, then are followed by:


 * Trigger types (offset 0x09):
 * 0 - Box
 * 1 - Sphere
 * 2 - Cylinder (unused)
 * 3 - Sphere (unused, seems to be the same as used Sphere)


 * Trigger Position 0
 * Box - Front, Bottom, Left sides of box (absolute coordinates)
 * Sphere - Center (X, Y, Z) (absolute coordinates)
 * Cylinder - Bottom? (X, Y, Z) (absolute coordinates)
 * Trigger Position 1
 * Box - Back, Top, Right sides of box (absolute coordinates)
 * Sphere - X is the sphere's radius. Y and Z are always 0.
 * Cylinder - X is the cylinder's radius. Y is the cylinder's height. Z is probably always 0.
 * Trigger Position 2
 * Box - Three seemingly random values in the range of 0xCDCDCDB7 to 0xCDCDCDDA. The meaning of this vector is unknown and is probably unused.
 * Sphere - Always (0, 0, 0)
 * Cylinder - Probably always (0, 0, 0)
 * Trigger Position 3
 * Box - Three seemingly random values in the range of 0xCDCDCDB7 to 0xCDCDCDDA. The meaning of this vector is unknown and is probably unused.
 * Sphere - Always (0, 0, 0)
 * Cylinder - Probably always (0, 0, 0)