spiNker yazdıHow to get an attachment using a raycast?
You could create a GameObject with a BoneFollower
component or a SkeletonUtilityBone
hierarchy to let GameObjects follow the bones. Then you can add Box-, Polygon- or MeshColliders to the respective GameObjects. What do you want to achieve?
spiNker yazdıAnd is it possible to get an active attachment from a bone?
Attachments are attached to Slots, so you can basically access it via slot.Attachment
. Accessing the Attachment from a Bone is a bit of a reversal of the normal access pattern, since Slots hold a reference to a Bone but not the other way around. To get from a Bone to a Slot, you would use something like the following code:
Slot slot = skeleton.Slots.Find((slot) => slot.Bone == bone);
Attachment attachment = slot.Attachment;