我如何在统一的皮肤上制作一个3D边界盒?
我需要在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我环顾四周文档类已经具有界限属性,这意味着您可能只需要访问它而无需创建它即可。
同样在
mesh.bounds
href =“ 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
andRenderer.Bounds
documentations, there are a couple of snippets I belive could be helpful.