Unity3D, round the edges of a box, cube?

后端 未结 3 540
伪装坚强ぢ
伪装坚强ぢ 2020-12-31 22:28

What\'s the usual way to round the edges on a cube, a rectangular object as in the examples?

\"enter

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-31 23:05

    We were able to accomplish beveled cubes for our game WorldToBuild. The key is really that you can go ahead and make the beveled model, then just move the vertices in groups.

    So in short, all I had to do to achieve the effect was:

    • Create a beveled cube (I used Blender).
    • Find what vertices you're going to move in each direction by their position from center.
    • Calculate out the beveled edges, and set the exact size.

    I wrote an article about it here. Scroll to the bottom of the article if you just want to know the process:

    https://www.linkedin.com/pulse/coding-resizable-beveled-cubes-unity-richard-christley

提交回复
热议问题