Skip to content

BobTrait

const BobTrait: Trait<{ elapsed: number; height: number; offset: number; seconds: number; }>

Defined in: packages/engine/src/gameplay/behaviours/traits.ts:16

Rises height above where it rests and back once every seconds. Applied as a difference from the last offset, so it rides on whatever else moves the entity.