Physics · const
BODY_SENSOR
A sensor reports overlap and resolves none of it.
Explained in Your first game, Rigid bodies.
const BODY_SENSOR = 2import { BODY_SENSOR } from '@driftengine/physics';In depth
Narrowphase still runs — an overlap that is never computed cannot be reported — and the solver is what skips it. What this costs is a sensor being as dear as a solid body in the broadphase and narrowphase, which is where most of the cost is anyway.