Drag for a single drag operation between a start and end position
Source: addons/grid_placement/systems/building/data/drag_path_data.gd
Syntax
class DragPathDataMembers
| Name | Kind | Summary |
|---|---|---|
start_position | Property | |
current_position | Property | |
time_held | Property | |
drag_distance | Property | |
last_tile | Property | |
target_tile | Property | |
next_tile | Property | |
last_attempted_tile | Property | |
build_requests | Property | Number of build requests made during this drag session. Incremented each time the drag service triggers a build. Useful for monitoring drag-build behavior and verifying request throttling. |
positioner | Property | |
targeting_state | Property | |
is_dragging | Property | |
update | Method | |
get_tile_at_node_2d | Method | |
stop | Method |
Tutorials built on Grid Placement
- Godot multiplayer grid placement: one host, four sessions
- Godot 2D grid building system: paint, place, save
- Godot 3D grid building system: the runtime loop
- Godot 4 grid-building plugins: build mode vs editor tools
- 3D room placement in Godot: build rooms and stack storeys
- 3D grid placement in Godot 4: full setup tutorial
- Snap to a TileMap in Godot: 2D grid placement
- How to make a farming system in Godot
- How to snap objects to a 3D grid in Godot