Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | rubendw03 |
Hey, I’m working on a 2D game with procedural island generation. So now I have this question: When I instance an object (rigidbodies and kinematic bodies) they can get spawned on top of other objects. So I basically want the object te respawn when it collides with something when it spawns. Also, i use a “hill” tilemap on which the objects can spawn in the middle tiles (tiles without collision shape) but not on the slopes/side tiles (tiles with collision shapes). So simply checking the position wouldn’t work. Is there a way to check for collision when the object gets spawned?