TileData¶
Inherits: Object
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods¶
Signals¶
changed ( )
Property Descriptions¶
bool flip_h
Default |
|
Setter |
set_flip_h(value) |
Getter |
get_flip_h() |
bool flip_v
Default |
|
Setter |
set_flip_v(value) |
Getter |
get_flip_v() |
ShaderMaterial material
Setter |
set_material(value) |
Getter |
get_material() |
Color modulate
Default |
|
Setter |
set_modulate(value) |
Getter |
get_modulate() |
float probability
Default |
|
Setter |
set_probability(value) |
Getter |
get_probability() |
int terrain_set
Default |
|
Setter |
set_terrain_set(value) |
Getter |
get_terrain_set() |
Vector2i texture_offset
Default |
|
Setter |
set_texture_offset(value) |
Getter |
get_texture_offset() |
bool transpose
Default |
|
Setter |
set_transpose(value) |
Getter |
get_transpose() |
int y_sort_origin
Default |
|
Setter |
set_y_sort_origin(value) |
Getter |
get_y_sort_origin() |
int z_index
Default |
|
Setter |
set_z_index(value) |
Getter |
get_z_index() |
Method Descriptions¶
void add_collision_polygon ( int layer_id )
Adds a collision polygon to the tile on the given TileSet physics layer.
Returns the one-way margin (for one-way platforms) of the polygon at index polygon_index
for TileSet physics layer with index layer_id
.
PackedVector2Array get_collision_polygon_points ( int layer_id, int polygon_index ) const
Returns the points of the polygon at index polygon_index
for TileSet physics layer with index layer_id
.
Returns how many polygons the tile has for TileSet physics layer with index layer_id
.
Returns the constant angular velocity applied to objects colliding with this tile.
Returns the constant linear velocity applied to objects colliding with this tile.
Returns the custom data value for custom data layer named layer_name
.
Returns the custom data value for custom data layer with index layer_id
.
Returns the navigation polygon of the tile for the TileSet navigation layer with index layer_id
.
OccluderPolygon2D get_occluder ( int layer_id ) const
Returns the occluder polygon of the tile for the TileSet occlusion layer with index layer_id
.
int get_peering_bit_terrain ( CellNeighbor peering_bit ) const
Returns the tile's terrain bit for the given peering_bit
direction.
Returns whether one-way collisions are enabled for the polygon at index polygon_index
for TileSet physics layer with index layer_id
.
Removes the polygon at index polygon_index
for TileSet physics layer with index layer_id
.
Enables/disables one-way collisions on the polygon at index polygon_index
for TileSet physics layer with index layer_id
.
Enables/disables one-way collisions on the polygon at index polygon_index
for TileSet physics layer with index layer_id
.
void set_collision_polygon_points ( int layer_id, int polygon_index, PackedVector2Array polygon )
Sets the points of the polygon at index polygon_index
for TileSet physics layer with index layer_id
.
Sets the polygons count for TileSet physics layer with index layer_id
.
Sets the constant angular velocity. This does not rotate the tile. This angular velocity is applied to objects colliding with this tile.
Sets the constant linear velocity. This does not move the tile. This linear velocity is applied to objects colliding with this tile. This is useful to create conveyor belts.
Sets the tile's custom data value for the TileSet custom data layer with name layer_name
.
Sets the tile's custom data value for the TileSet custom data layer with index layer_id
.
Sets the navigation polygon for the TileSet navigation layer with index layer_id
.
void set_occluder ( int layer_id, OccluderPolygon2D occluder_polygon )
Sets the occluder for the TileSet occlusion layer with index layer_id
.
void set_peering_bit_terrain ( CellNeighbor peering_bit, int terrain )
Sets the tile's terrain bit for the given peering_bit
direction.