there are some ways to do it
first use Sparkys Collision pluging \ library ..
after understanding how collision works with Sparky's then you just disable any camera movements.
so if you have your camera moving randomly on the map
put an if (!BallCollidedwithhouse boolean)
do camera movement
else
dont move camera
if you want a simple collision you have the DARKGDK collision which is not so good but will still work
and ofcourse you can do
if (ballX >= houseX&& ballX + ballwidth <= houseX + housewidth)
{
if (ballY >= houseY && ballY + ballHeight <= houseY + houseHeight)
{
if (ballZ >= houseZ && ballZ + ballDepth <= houseZ + houseDepth)
{
ballCollided = true;
}
}
}
if (!ballCollided)
{
CameraMovement...
}
else
{
NoCameraMovement...
}
i hope this can help
nadav.