我如何在统一的皮肤上制作一个3D边界盒?

发布于 2025-02-03 20:20:10 字数 141 浏览 4 评论 0原文

我需要在SkinnedMesh渲染器对象周围制作一个3D边界盒,以使其成为团结。我需要将顶点打印到屏幕或JSON文件以进行导出。您是否碰巧知道关键步骤,甚至为边界框部分提供代码段。我可以弄清楚如何将数据从引擎中取出。

感谢您的帮助!

布莱恩

I need to make a 3D bounding box around a SkinnedMesh renderer object for Unity. I need to print the vertices to the screen or a JSON file for export. Would you happen to know the key steps or even offer a code snippet for the bounding box part. I can figure out how to get the data out of the engine.

Thanks for the help!

Brian

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一个人的夜不怕黑 2025-02-10 20:20:10

我环顾四周文档类已经具有界限属性,这意味着您可能只需要访问它而无需创建它即可。

同样在 mesh.boundshref =“ https://docs.unity3d.com/scriptreference/renderer-bounds.html” rel =“ nofollow noreferrer”> renderer.bounder.bounds 我相信可能会有所帮助。

I've looked around the documentation and found out that the SkinnedMeshRenderer class already has the bounds property, meaning that you probably only need to access it without having to create it.

Also in the Mesh.bounds and Renderer.Bounds documentations, there are a couple of snippets I belive could be helpful.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文