I have a script for picking up objects with rigidbodies attached to them. Currently, when I pick up the object, I set the object’s rigidbody to not detect any collisions (interactObj.GetComponent().detectCollisions = false;). However, I want the object only to not detect the player’s collisions, but still detect all other collisions in the scene. What is a good way to do this?
Hello @KqGMRPFkAeESzF8, you can use unity’s physics layer to have only some objects to collide.
You can learn more here: Unity - Manual: Layer-based collision detection
It’s really easy to use !
Have a good day,
Raph