I want to display the frustum
planes of any given camera during the game. Not only the current camera, but
actually see the 'frustum' moving from other cameras.
I did a simple copy
and paste of the code from the script manual and the planes I see seem
completely off from the real frustum.
if (targetGO ==
int i = 0;
while (i < planes.Length)
GameObject p =
p.name = "Plane " +
p.transform.position = -planes[i].normal *
added the localScale to make sure it wasn't my imagination, but all frustum seem
to be positioned at the wrong place. When I display the planes using the code, I
see them like 1000 units away from the origin.
My camera is a children of
other objects, so I don't know if that's what's messing it up, I tried
'unchilding' it, but same behaviour.