• 中文
  • 弓箭手角色射出的箭头移动到指定位置

  • Изменено
Related Discussions
...

spine+unity ,现在有一个需求:弓箭手角色射出的箭头,移动到敌人的位置,这个需求应该实现才比较合理?
骨骼对应的unity中的世界坐标如何获得?插槽下的图片可以获得吗?谢谢!

red1990 написал

骨骼对应的unity中的世界坐标如何获得?
How is the world coordinate in unity corresponding to the skeleton obtained?

Unity中最简单的方法是创建一个单独的GameObject并将一个BoneFollower组件附加到它上面。 然后它将每帧更新它的位置以匹配骨骼位置。
The easiest way in Unity is to create a separate GameObject and attach a BoneFollower component to it. It will then update it's location every frame to match the bone position.

red1990 написал

插槽下的图片可以获得吗?
Can I get the picture under the slot?

您可以按如下方式查询插槽中的当前附件:
You can query the current attachment at a slot as follows:

var attachment = skeletonAnimation.Skeleton.FindSlot(“slotname”)。附件;
// string attachmentName = attachment.Name;

你到底想要达到什么目的?
What exactly are you trying to achieve?