Jump to content

How can i programmatically attach two objects?


Recommended Posts

How can i attach two objects through a C# script? Lets say i want to attach and detach an object from the hand of a Character body, what approach should i use?

While i'm at it, how can i make it follow the same movements as the hand? Can a simple Joint achieve this? I tried with a joint but i don't know how to move the joint to the hand of the character nor activate and deactivate the joint via code.

This is probably a noob question but i just can't find it anywhere

Link to comment
×
×
  • Create New...