How do I make an object with a rigidbody2D and boxcollider2D not collide with another?
Hi, I am trying to make a game where the player can move through objects that are lying on the ground yet when he clicks on it with the curser it then adds it to the inventory.
The idea is that the items shoot out of a chest and then land on the ground upon opening it, so I need gravity (rigidbody2D) involved and a boxcollider2D involved (on the items) so the items don't faze through the floor (maybe I don't need this, I am very new).
I can't however, make the player (who also has a rigidbody2D and a boxcollider2D) walk through these objects, any help would be greatly appreciated.
Answer by Vladislav-Videnov · Apr 11, 2019 at 09:26 PM
A quick solution i can think is to put them on 2 different layers and then disable the collision check between these two layers from the physics manager ?
Your answer
Follow this Question
Related Questions
2D tilemap item collision deletes all items? 1 Answer
Check distance between items and player not working 0 Answers
loading player with item to have ? 1 Answer
Collision2D or Trigger2D - Jumping Issue 0 Answers
Character won't jump with a joystick 0 Answers