Hi,
I have a problem with the camera. When I descend a hill the camera goes through the object. I load the level once, as an object and this is it's setup SC_SetupComplexObject( groundlevel,1,2 );.This is what I use to position the camera:
dbPositionCamera( dbObjectPositionX(ball),dbObjectPositionY(ball),dbObjectPositionZ(ball) );
dbRotateCamera( dbObjectAngleX(ball),dbObjectAngleY(ball),dbObjectAngleZ(ball) );
dbSetCameraToFollow(dbObjectPositionX(ball), dbObjectPositionY(ball), dbObjectPositionZ(ball), dbObjectAngleY(ball), 50,25 + (dbCameraAngleX() / 20) , 1,0);// era 30 + (dbCameraAngleX() / 20)
I tried dbAutomaticCameraCollision ( groundlevel, 15,1 ); but it didn't work.
What can I do?