Thanks that stopped the shaking.. Now I cant seem to stop the object.. no matter how hard I fry my brain. Its probably really simple aswell lol.
if(dbMouseClick()==2 && Picked == 10){
TerMousePos = dbPickObject( dbMouseX (), dbMouseY (), 1, 1 );
xHit = dbGetPickVectorX() + dbCameraPositionX();
zHit = dbGetPickVectorZ() + dbCameraPositionZ();
ObjectPlaced = true;
}
if(ObjectPlaced && !ObjectPointed){
dbPointObject( 10, xHit, dbObjectPositionY(10), zHit);
ObjectPointed = true;
}
if(ObjectPlaced && ObjectPointed){
dbMoveObject( 10, 0.16f );
dbSetObjectSpeed( 10, 18 );
dbLoopObject( 10, 1, 13 );
}
if(dbObjectPositionX(10) == xHit && dbObjectPositionZ(10) == zHit){
dbStopObject( 10 );
}