- Home /
Character colliding with itself when touching a particular object
I have a script that binds the hand of the character to a physics object it's touching if the LMB is pressed.
This works fine for most objects, but one in particular fails to be grabbed and produces the error "Cannot create the 2D Joint on 'LHand' because it connects to itself" from the script attached to the hand.
Have I inadvertently changed the 2D physics setting for that particular object? Thanks for the attention
Answer by GiacomInox · Aug 30, 2020 at 07:39 AM
I realized what i did wrong:
The object in question had a SendMessage() instruction that activated for every collision. The character's hand jumped to a non existing function while trying to connect itself to the object, failing in the process. I have added a slightly larger trigger to the object and i'm referencing it instead of the collider, this seems to have solved the problem.
Your answer
![](https://koobas.hobune.stream/wayback/20220613010720im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to precisely control a character through scripts while still using unity collisions? 1 Answer
Hinge Joint 2D with seperate push movement through physics 0 Answers
trying to reverse 2D player's gravity after colliding with specific object 1 Answer
How to use AddForce and Velocity together 1 Answer
Shoot Projectile on the direction of where the gun is facing 1 Answer