Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


pilarsor

Member Since 31 Jul 2003
Offline Last Active Apr 02 2012 02:14 PM

#4924765 Opengl - linker errors

Posted by pilarsor on 23 March 2012 - 04:20 PM

Seems, that you miss linking against glut32.lib.


#4924752 Edge-Face Collision detection between sphere and box

Posted by pilarsor on 23 March 2012 - 03:23 PM

Hmm ... why do make it so complicated?

When you know you have a sphere and a box colliding with each other, why don't you use the implicit representation of the sphere? ( (x-x0)^2 + (y-y0)^2 + (z-z0)^2 = r^2 ), where (x0,y0,z0) is the origin of the sphere.

... and a transformed box, where the box is either an object oriented bbox, or you just use an axis aligned bbox, and transform the sphere into your local AABB space, which might make the collision detection easier.

Maybe this applies to your case, if not, I apologize...
... though finding the point(s) of intersection here is not so intuitive.


PARTNERS