`GET THE GROUND HEIGHT
Y# = GET GROUND HEIGHT(1,OBJECT POSITION X(ID),OBJECT POSITION Z(ID))+OBJECT SIZE Y(ID)/2
`REPOSITION IT
POSITION OBJECT ID,OBJECT POSITION X(ID),Y#,OBJECT POSITION Z(ID)
note: Please dont mind the caps, its just the way I type my code, I mean nothing by it
Here, ID is the object number. If your working with many objects, you could make this into a function, so that you won't need to keep typing it out. To have the code work for the camera, use this...
`GET THE GROUND HEIGHT
Y# = GET GROUND HEIGHT(1,CAMERA POSITION X(ID),CAMERA POSITION Z(ID))+OBJECT SIZE Y(ID)/2
`REPOSITION IT
POSITION CAMERA ID,CAMERA POSTITION X(ID),Y#,CAMERA POSITION Z(ID)