Skip to main content

ScreenWrapOptions

@zylem/game-lib


@zylem/game-lib / behavior / ScreenWrapOptions

Interface: ScreenWrapOptions

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/screen-wrap.d.ts:15

Screen wrap options (typed for entity.use() autocomplete)

Properties​

centerX​

centerX: number

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/screen-wrap.d.ts:21

Center X position (default: 0)


centerY​

centerY: number

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/screen-wrap.d.ts:23

Center Y position (default: 0)


edgeThreshold​

edgeThreshold: number

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/screen-wrap.d.ts:25

Distance from edge to trigger NearEdge state (default: 2)


height​

height: number

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/screen-wrap.d.ts:19

Height of the wrapping area (default: 15)


width​

width: number

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/screen-wrap.d.ts:17

Width of the wrapping area (default: 20)