Programming Project – FPS
|
This I’ve been working with creating the playerobject, the playermovement, boundingboxes for collision and the collision. When I tried to add plaermovement the first time I fucked it up completely, I didnt account for the direction the player is facing in anyway so it obviously didn’t work. I blame being tired for it. For collision I created a simple box that has a position, and a volume. To check collision between to boxes we have to check if any of the corners on one box is inside the other box and vice versa. Since it have to check 16 verticies per check I added a range variable to each box, this will make sure that it will only check collision with objects in a certain range at a time instead of making these checks all the time when it isn’t needed. Thats all for today, seeya! Filed under: Uncategorized |