isBullet property
bool
get
isBullet
Whether this body should be treated like a bullet for continuous collision detection.
Fast moving dynamic bodies should be labeled as bullets so that they do not tunnel through other moving objects.
Warning: You should use this flag sparingly since it increases processing time.
See also:
Implementation
bool get isBullet => (flags & bulletFlag) == bulletFlag;
set
isBullet
(bool flag)
Whether this body should be treated like a bullet for continuous collision detection.
Fast moving dynamic bodies should be labeled as bullets so that they do not tunnel through other moving objects.
Warning: You should use this flag sparingly since it increases processing time.
See also:
Implementation
set isBullet(bool flag) {
if (flag) {
flags |= bulletFlag;
} else {
flags &= ~bulletFlag;
}
}