pX_setgroupcollision
( int group1, int group2, bool collide );
Specifies if collision detection should be performed between
group1 and group2.
Parameters:
group1 |
Collision group 1. |
group2 |
Collision group 2. |
collide |
Defines
collision between the groups: 0 = disable or 1 = enable. |
Returns:
Nonzero if successful, 0
otherwise.
Remarks:
- By default, collisions within the same group are disabled (except for groups 0 and 1), and between different groups enabled.
Speed:
Medium
Example:
pX_setgroupcollision ( my.group, you.group, 1);
See also:
pXent_setgroup,
pXent_setcollisionflag