跳转到内容

TilesetCollision

此内容尚不支持你的语言。

TilesetCollision = TileCollisionShape & object

Defined in: tilemap/tilesetAsset.ts:38

A tile’s collision = a TileCollisionShape plus optional cross-cutting modifiers. Every modifier is optional and omitted when at its engine default, so existing .estileset files (plain {type:'box'} / {type:'polygon'}) round-trip byte-for-byte. oneWay is the solid-side normal in physics/world convention (y-up; {0,1} = solid-top, jump-through floor); flip flags reorient it at placement. Absence of collision = none.

optional density?: number

Physics material overrides (absent = engine defaults).

optional friction?: number

optional oneWay?: object

One-way (jump-through) platform: contacts from behind this normal pass through.

nx: number

ny: number

optional restitution?: number

optional sensor?: boolean

Non-solid trigger volume (fires events, no physical response).