ThrusterBehavior
@zylem/game-lib / behavior / ThrusterBehavior
Variable: ThrusterBehavior
constThrusterBehavior:BehaviorDescriptor<ThrusterBehaviorOptions,Record<string,never>,ThrusterEntity>
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/thruster.d.ts:91
ThrusterBehavior - typed descriptor for thruster movement.
Example
import { ThrusterBehavior } from "@zylem/game-lib/behavior";
const ship = createSprite({ ... });
ship.use(ThrusterBehavior, { linearThrust: 15, angularThrust: 8 });