Hi everybody!.

I've a problem in Unity.

I've a plane inclined of a certain degree (say 60 degree). I would like to compute what is the projected width occupied by the plane.

I'll try to explane better. When plane is 90 degree inclinated is perpendicular to the bottom. So is projected width is 0 (or at most 1).

When the plane is 60 degree inclined, its projected width should be cos(60) * plane.height = 1/2.

However i don't know how is the correct way to do this in Unity: compute the projection via Script.

Can you help me, please? Thanks.