Just for the record, I aint no bloody n00b! i've been programing for years, just re-picked up darkbasic

. I've looked around a LOT, and haven't been able to find any tutorials on Newxvalue,Newzvalue and Newyvalue

. I'm not incredibly good at math, though i pretty much understand cos and sin(I think the New#value command is simmilar...) So, anybody care to explain it?
EDIT<
Also, Since i haven't yt been able to figure those commands out, iv'e been using a bit of coode from the Binary Moon tutorial, but it dosn't seem to work right.
make object cone 1,1
make object box 2,2,2,2
position object 2,10,0,0
do
if leftkey() = 1 then turn object left 1,5
chase_cam(1)
loop
function chase_cam(id)
`work out the angle of the object being chased
yAng#=wrapvalue(object angle y(id)+180)
`grab the objects current position
xPos#=object position x(id)
yPos#=object position y(id)
zPos#=object position z(id)
`other variables
camDist=15
camHeight=3
`work out new position
xCamPos#=newxvalue(xPos#,yAng#,camDist)
zCamPos#=newzvalue(zPos#,yAng#,camDist)
`work out camera height
yCamPos#= 10
`update camera position
position camera xCamPos#,yCamPos#,zCamPos#
point camera xPos#,yPos#+camHeight,zPos#
endfunction
When i hold the left arrow, the cone rotates about 180 deggrees, i'm guessing, the the cam stops following it. Any ideas?
Edit>
later