Gravity and World-Collision

This is an old ar­ti­cle from 2011. I was a kid. I learned a lot since then, so please do think twice when tak­ing ad­vice from me as a kid.

Fi­nal­ly worked out the World-Col­li­sion prob­lem. The play­er now col­lides per­fect­ly with the blocks, but there is one prob­lem left:

If you col­lide with a block in front on you, “you look in­side the block”. That’s be­cause you are 0.0f long 0.0f wide and the near clip­ping plane is at 0.1f (Your sight starts 0.1f (in GL-Units?) in front of you). I’ll fix this prob­lem next by giv­ing the play­er di­men­sions, but I’m fin­ished for to­day, so you’ll hear from me to­mor­row ;)

Greet­ings, Squareys

This post was im­port­ed from tum­blr

Tumblr

Archived blog posts from squareys.tum­blr.com.