Best FPS Camera?
Blitz3D Forums/Blitz3D Programming/Best FPS Camera?
| ||
Which way would be the best way for positioning a camera in a FPS? Should i place the camera a certain distance above a cube? or should i use line pick? Any help would be great. |
| ||
..you will position your camera at the begin of your level, on specific position (eg. 10,10,50) and from that moment you should simply do pressed keycheck in main loop to define your camera movement and pisition changes according to your commands with Translateentity camera,x,y,z or Positionentity camera,x,y,z ... |
| ||
But when i got up stairs or ramps the camera doesn't stay at that certain distance. |
| ||
Move the camera after updateworld() |
| ||
On a mesh? |
| ||
Check out my FPS example in my Programming tutorial... |
| ||
www.blitzbasic.com/codearcs/codearcs.php?code=1137 Check out this, it contains everything you need /Alienforce www.gizmoteket.se |
| ||
Basically when you go up stairs or ramps, the entityraduis of the player will keep it at a set distance from the floor. You might want to have a look at the manual, more specifically at the "Collisions" command and "EntityType". |