Question by
interpol_kun · Feb 28, 2018 at 03:45 PM ·
meshgeometrycalculations
Calculating mesh area
I have a game with the shape slicing mechanics.
I need to get the area (it's in 2D) of the each slice. Each slice has Mesh, PolygonCollider2D and RigidBody2D.
How can I get a slice area using existing components?
The area must represent actual object size on screen and should know about object scale.
Rect and bound solutions don't have a good accuracy with complex shapes like stars. So I'd already tried them.
Comment
if you're able to break the mesh down into triangles, it's pretty easy to calculate the area.
Your answer
![](https://koobas.hobune.stream/wayback/20220612153638im_/https://answers.unity.com/themes/thub/images/avi.jpg)