Spawn RigidBody at tile

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By CM333

So, I want to spawn a RigidBody entity at a specific tile. The RigidBody is a child of the TileMap, but I understand that could be part of the problem. Any help would be appreciated!

I’m not sure I understand what the problem is here. Can’t you just use map_to_world to get the position of the tile?

exuin | 2022-07-30 22:12

:bust_in_silhouette: Reply From: DarkShroom

spawn as normal, no need to have the rb as a child i wouldn’t personally… the tilemap has a function “map_to_world” which would tell you the position

map_to_world