Smart Cam Problems

Blitz3D Forums/Blitz3D Programming/Smart Cam Problems

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Another thing you could do, is to change the near/far range to reflect the closest and furthest object...

Basically just calculate the distance from the camera to every object and set the near value to the closest distance-something and the far value to the furthest distance-something. Something being the width of the largest object in the game.

In the code above, you write:

'Rather than using controls to move the player, use them to move all your stuff around them!'

Just remember that calling it every frame is redundant, CPU intensive and can lead to problems with collision.

Andy