- Home /
Prevent Grabbed Object from Clipping
Okay so I have this grabbing function. How do I approach preventing it from clipping? Thanks.
Can you please explain more about your query, it's little hard to get from the details you have mentioned
Answer by SuperScience · Oct 07, 2018 at 10:00 AM
There are lots of solutions to this problem, and the best one will depend on your game.
If you want to prevent the Object from clipping, your best bet is to give it and anything it can't clip-with a non-kinematic non-trigger collider and a rigidbody. Then add a joint to your pick-up tool (hand? glove?)
Attach the object to the joint upon pickup and release the link when you want to drop. This should ensure that physics is preserved on the object while you are moving it. You can also put in a quantity of force that will break the link to the joint. So if someone tries to make this thing co-exist in the space with another solid object, eventually the hand will lose its grasp rather than violating physics.
Your answer
Follow this Question
Related Questions
How do I move both the parent and child to a known position where I want the child to be? 1 Answer
Position of cameras children objects messed up after the game start. 0 Answers
Is there any way to create a fade effect in order to hide what isn't rendered by the camera? 0 Answers
How do I move it along with the platform while still keeping it's original scale!! 0 Answers
Blue strip appears on water at edge of camera's clipping plane 1 Answer