Jump to content

How can i programmatically attach two objects?


Recommended Posts

Posted

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

Posted

Since WorldTransformBone is inherited from Node you can use addChild to add objects to this node. You can check the UnigineScript sample (bone_00) in the Worlds section in SDK Browser for more information.

  • Like 1

How to submit a good bug report
---
FTP server for test scenes and user uploads:

×
×
  • Create New...