Dragrigidbody big problem. Modification script.

I use a script dragrigidbody to move an object when the player is close and raises object there is a bug that throws the player of the up. So how to set a minimum distance between the camera and the subject was just like in the game “portal” ?

You want to use a FixedJoint instead of moving the rigid body directly. If you create a GameObject with a FixedJoint and keep that GameObject at a certain offset from your camera, it’ll do what you want.