-
OpenGL Collision - any help with coll and co-ords?
hi,
ok, so I know OpenGl in itself doesnt have a collision system.
However I felt that maybe I could just set the code to recognise if a player is at a certain point within the world then i could write some more code to make the game recongnise collison.
Is this possible?
Any idea on how this would be written?
at the moment i dont exactly have a proper coded camera, but just using keyboard controls to translate through the world.
so i was thinking something along the lines of:
case 'w':
case 'W':
glTranslatef(0.0, 0.0, 25.0);
break;
but obv that just moves the cam forward, so how would i create some rule of collision after a certain distance along the zaxis
(if translate reeaches 100.0) for example
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules