- Home /
Picked Up object - how to create correct collision detection
I have made my player pick up an object after Raycasting detects it's a package and I move it to a holding distance infront of the camera.
My issue is, after I pick up the object, I would like it to be blocked by any colliders such as the floor or the walls, but not rotated or moved from the holding position(which is being set by the script I have created). However, I would also like to disable it's ability to push other rigidbodies - carrying this 10kg box into the body of a 1000kg truck started pushing it to 3 or 4mph as well as disturbing all of the other boxes it came in contact with...which is not desirable for my game.
I am doing this by setting Kinematic to true and moving transform to set distance infront of camera while carrying.
I would appreciate any help as I couldn't find any help on this particular behaviour which I would like.