- Home /
Question by
Luis de Leon · Nov 17, 2010 at 11:35 PM ·
physics
Determine Area using code
I was wondering if its possible to determine a specific area of a plane using nothing but code?
Comment
An "area of a plane" can be ANY 2D shape, or combination thereof. Please specify.
Answer by denewbie · Nov 17, 2010 at 11:48 PM
Something like this. Its either X and Z or X and Y.
float myPlaneArea = (transform.lossyScale.x 10) (transform.lossyScale.z * 10);