SetViewPort and Collision Detection
BlitzMax Forums/BlitzMax Programming/SetViewPort and Collision Detection
| ||
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? |
| ||
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. |
| ||
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 :) |