Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

FixedBodyOptions

A body that never moves.

  • BodyOptionsBase
Property Type Default value Description
bodyType "fixed" | Fixed undefined -
collisionLayer? CollisionLayerHandle CoreLayers.default The layer it stands in, a handle a plugin declared.
collisionMask? CollisionMask every layer The layers it meets: a pair touches only when each one’s mask holds the other’s layer.
ignore? readonly Entity[] undefined Entities it never touches, such as a rider’s own dragon, without spending a layer.
reportContacts? boolean false Whether it raises CollisionEnteredEvent and CollisionExitedEvent as it starts and stops touching another entity, as Rapier’s active events and Godot’s contact_monitor are asked for, so a pile of crates nobody watches costs nothing. A trigger reports always.