Static (body)

From Box2D Wiki

A static body is an unmoving body, and the opposite of a dynamic body. Bodies in Box2D are static if and only if they have zero mass, in which case b2Body.IsStatic() will return true.

Static bodies behave in collisions as if they have infinite mass, and any velocity they have is ignored. However, you can still change their position with SetXForm. Internally they do not count for determining islands, and they are optimized in the broadphase. Thus static bodies are more efficient than dynamic ones, and should be used whenever appropriate.

TOOLBOX
LANGUAGES