Comments and answers for "find the tangent of a box / circle collider"
http://answers.unity.com/questions/707106/find-the-tangent-of-a-box-circle-collider.html
The latest comments and answers for the question "find the tangent of a box / circle collider"Comment by supernat
http://answers.unity.com/comments/707869/view.html
I don't fully understand what you want to achieve, looking for intersection with the view frustum you want to know if any two points are outside the view? I would take the box's center, create the 8 axis-aligned points (i.e. say box center +/- xSize, ySize, zSize), then rotate them in the box's frame (i.e. rotate them by the box's world rotation). This should give you the 8 points in world space, which you can then create vectors from the camera or whatever eyepoint you choose. With those vectors, you should be able to get closer to what you want to achieve.Wed, 14 May 2014 18:52:56 GMTsupernatComment by OrbitGames
http://answers.unity.com/comments/707851/view.html
thanks koray, but i don`t know how to determine the two points...
I have tried raycasting before, but too many rays slow down the game extremlyWed, 14 May 2014 18:27:25 GMTOrbitGamesComment by koray1396
http://answers.unity.com/comments/707283/view.html
Well, you have 4 points, you should determine which points are in the range of the red dot. there might be 2 or 3. If there is 2, then you have your points, if 3, the one with the biggest angle combined with the red dot gives you the answer.
to find which of them are in the range, you can put empty gameobjects just a little away from the corner, 0.1 for example and cast a ray towards the red dot and see if it hits the square object. that's what I would do.
But I'm sure someone else would give you simpler answer.Tue, 13 May 2014 21:00:35 GMTkoray1396Comment by OrbitGames
http://answers.unity.com/comments/707192/view.html
Sorry for me failing to express myself.
I am trying to find (link to the [referenced image][1])
[1]: http://s27.postimg.org/4y0wwk9tf/tangent.png
the yellow points.
The red point is the sort of viewpoint / originpoint or somethingTue, 13 May 2014 18:35:17 GMTOrbitGamesComment by Pyrian
http://answers.unity.com/comments/707175/view.html
Maybe the surface normal vector would help?
[ContactPoint2D.normal][1]
[1]: http://docs.unity3d.com/Documentation/ScriptReference/ContactPoint2D-normal.htmlTue, 13 May 2014 18:13:08 GMTPyrianComment by Jeff-Kesselman
http://answers.unity.com/comments/707152/view.html
What do you mean by "tangent to a box collider"? A box only has tangents at its edges...
Do you mean the angle of a colliding ray to the surface plane at the point of collision? Something else?Tue, 13 May 2014 17:46:22 GMTJeff-Kesselman