android - creating bounding box around openGL objects -


I have created an open GL class.

  last float array1 [] = new Float [] {// front face LX, LE, HJ, LX, HA, HZ, HX, LE, HZ, HX, HA, HJ}};  

I have found a solution. Now I will put bounding boxes around every square so that I can see if they pierce each other.

Thanks

How can you go about doing this? In the case of a class, the bounding box is class, in fact, the bounding box put around the squares is required.

A bounding box is only a concept: a geometric shell in which some other (real) geometry can be in the conceptual existence, considering that a complex polygon object is examined against each of the rectangular It is very easy (and fast) to check against 4 corners (for collision etc).

There is a special problem for you to detect a collision, so you should project your ray to your ray on the plane defined by your crossroads. If the point of the plane is located between all your corners, the ray hits the square.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -