#How to add components like ridgid body 2d to a tile map?

1 messages · Page 1 of 1 (latest)

scenic cobalt
#

Hello!
I just started learning Unity and C Sharp. In my first game i created a map with a tile map, but i didnt know how to add a ridgidbody 2d to the floor for example. I solved the problem with a 2D game object in the layer -1 so it isnt visable. Is there a other way to solve it, so i dont have to add a extra 2d object?
I wish yall a nice day 😄

rugged wharf
#

If you mean the Component "TileMap" then no you can't add a component to another component. If you have a GameObject named "TileMap" then you should be able to add a rigidbody the same way you add any other component:: Add Component --> Rigidbody2D

scenic cobalt
sacred vine
scenic cobalt
rugged wharf
fallow scarab
#

you need to do a bit of modification on tilemap colliders

#

or else your player will bounce and gget stuck on corners

scenic cobalt