tom123

For example I have a character with a weapon. how to bind weapon skeleton to character bone which named "left hand" or "right hand". I don't find any API about this.
tom123
  • Сообщения: 3

Harald

Skeleton attachments are not yet implemented. However, depending on the runtime, there are various ways to let one object follow a bone.

If you are using the Unity runtime, you can use a BoneFollower to have a GameObject track the bone location, and then you can set your weapon skeleton GameObject as child of this BoneFollower object.
Аватара пользователя
Harald

Harri
  • Сообщения: 927

tom123

Harald писал(а):Skeleton attachments are not yet implemented. However, depending on the runtime, there are various ways to let one object follow a bone.

If you are using the Unity runtime, you can use a BoneFollower to have a GameObject track the bone location, and then you can set your weapon skeleton GameObject as child of this BoneFollower object.
Does cocos or cocosCreator have same function?
tom123
  • Сообщения: 3

Nate

In all runtimes you can get the world position of a bone and position other things at that position (which is all the BoneFollower in spine-unity is doing).
Аватара пользователя
Nate

Nate
  • Сообщения: 9184


Вернуться в Runtimes