开发者

Box2D - How to make a hollow circle

开发者 https://www.devze.com 2023-02-17 03:17 出处:网络
I would like to know how to make a hollow circle, with boxes and distance joint, something like this:

I would like to know how to make a hollow circle, with boxes and distance joint, something like this:

Box2D - How to make a hollow circle

(so开发者_如何学运维urce: subirimagenes.com)

I've tried it but I cant get a perfect circle, any idea? thanks


Here is one route. Draw a regular n-gon. Below, the blue is a regular 16-gon. Then translate each edge outward radially, and connect each translated (red) edge to its original (blue):


Box2D - How to make a hollow circle


0

精彩评论

暂无评论...
验证码 换一张
取 消