Hey all,
A quick update regarding a small feature that got added a few months ago: literal names for collision parts.
Before, in config, for body parts, we used to declare something like:
[BallPart]
SelfFlags = 0x0001
CheckMask = 0x0003
[WallPart]
SelfFlags = 0x0002
CheckMask = 0x0001
This can get confusing (especially for people not familiar with flags and masks) and hard to read, so now this can be simplified in:
[BallPart]
SelfFlags = ball
CheckMask = ball # wall
[WallPart]
SelfFlags = wall
CheckMask = ball
This will result in the same behavior but is much more readable. The names used for the literals don't have to be defined anywhere else.
The API also allows to convert from numeral to literal and reciprocally at runtime with the functions orxPhysics_GetCollisionFlagName() and orxPhysics_GetCollisionFlagValue().
Cheers,
Rom