tile_shapes
How the node's tile_collision builds the tiles whose collision is polygons, the ones a tileset gives collision = [[[x, y], ...]]: what each polygon…
في هذه الصفحة
2d · physics · 2 properties · 2D
How the node's tile_collision builds the tiles whose collision is polygons, the ones a tileset gives collision = [[[x, y], ...]]: what each polygon becomes and how far it is rounded. Whole cells read none of it.
In a scene, tile_shapes is the node key that applies it. A script reaches each property below as a field on node.tile_shapes: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.tile_shapes.get() and node.tile_shapes.set(table).
Properties
| property | type | default | description |
|---|---|---|---|
edge_radius |
float | 0 |
Rounds each shaped tile's polygon by this radius At least 0. |
fit |
enum | convex_hull |
What a shaped tile's polygon becomes: its hull, its box, its oriented box, or convex pieces that keep a concave outline One of convex_hull, aabb, obb, convex_decomposition. |