SetViewPort and Collision Detection

BlitzMax Forums/BlitzMax Programming/SetViewPort and Collision Detection

Rico(Posted 2011) [#1]
I am using SetViewPort to clip some sprites in my game. i was wondering will this affect collision detection or does it only effect how they are drawn?


ima747(Posted 2011) [#2]
Just drawing, collision happens in it's own little world, however you may want to consider using simplified collision (such as bounding box instead of pixel perfect) for things that are off screen/out of view to save processor time.


Rico(Posted 2011) [#3]
ah ok, i suspected it might be like that. yes thats a good idea - doing a bounding box check when objects are offscreen . i hadnt thought of that. thank you ima747 :)