Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

Move sphere out of line segment = stuck

$
0
0

So the sphere is moving but after hitting closest point on edge it gets stuck

These are two drawings of thing what i am currently doing

Sphere is moving from rA to rB and i compute closest points on both line segments (edge of polygon and movement ray), if distance between them it closer than SR (sphere radius) theres a collision, i know all intersection points etc

Look at bottom right drawing - theres a h which is distance between closest points between - edge of poly and movement ray, knowing that i must move sphere by its radius out of the …


Viewing all articles
Browse latest Browse all 17625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>