我可以在 Unity3D 中的多个 3D 角色上使用相同的动画模型吗?
我正在 Unity3D 中创建一个游戏。
我的角色动画采用火柴人动画文件的形式,但可以是 Maya 或 Cinema4D。
是否可以拥有多个 3D 角色并在游戏中在它们之间进行交换 - 但是,使用相同的火柴人动画作为它们下面的运动?
角色需要拥有完全相同的骨架吗?
I am creating a game in Unity3D.
My character animation is in the form of stickman animation files but can be either Maya or Cinema4D.
Is it possible to have multiple 3D characters and swap between them in game - however, use the same stickman animation as their movement underneath?
Would the characters need to have the exact same skeleton?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
基本上,您可以根据 Wes McDermott 的Creating 3D Game Art for the Iphone with Unity一书对多个模型使用相同的动画(一些摘录可在 Google Books
引用第 143 页:另一个值得一提的方面是,只要基于动画组件引用对象的方式,它们的层次结构相同,您就可以在不同的角色上重复使用动画。
我前段时间用并行同步的第二个装备进行了测试,
因此骨骼应该是相同的,至少可以交换角色,并且主要用于死亡动画。在这种情况下,您有一个运动学刚体,其物理组件随后被转换为布娃娃。我认为将其扩展到整个角色没有问题。
Basically you can use the same animation for more than one model according to the book Creating 3D Game Art for the Iphone with Unity by Wes McDermott (some excerpts available at Google Books.
Citing page 143: Another aspect worth mentioning is that you can reuse animations on different characters as long as their hierarchies are the same based on how the Animation Component references objects.
I tested it some time ago with a 2nd rig being synchronised in parallel and it worked.
So the skeleton should be identical at least the bone names need to be present. Swapping characters is possible and mainly used for death animations. In this situation you have a kinematic rigidbody whose physics components are then transformed into ragdoll. I see no problem to extend this to the whole character.