As some of you know that EXIS (Extended Inventory System) has just been released in SUPER BETA VERSION. Now i am currently working on a code to transfer the item into 3D space when it is Equip. Now i release that there are many ways to approach this, but i have an idea that just might work. It would involve 2 things:
-an invisible rod in the character hand
-an Instantiated variable
Now i was going to try to do this by Instantiating the Equip onto the coordinates of the invisible rod. Would this work?
The standard way of doing it is to have a Weapon bone on the skinned mesh situated at the hand or wherever ya want. Same for a helm, or cape, or shoulder epaulets, etc.
Okay, Thanks. I assume you are talking about a bone made in the 3D modeling program, Correct? Alright than, i’ll try it out. Two last things:
If i instantiate the item at the bone, will it get deformed?
Also i want the weapon to move with the bone, and the only way i can think of doing that is by making the weapon a child to the bone…? its just confusing me a bit. would you mind explaining it more? thanks!
How exactly you do it depends on how the “character” you want to wield the weapon is constructed. If it has its arms as separate skinned meshes then you can just instantiate the whole arm with the weapon attached.
In Unity you could even just use an empty GameObject to use as the attach node - anything with a transform really an then instantiate the prefab weapon there.
As long as the bone or gameObject transform is parented to the character it should move with the character no problems.