2007.08.10, 05:18 PM
I have a feeling this will be another one of those solutions I'm going to hit myself over the simplicity of.
I can't get the map.object.getAngleTo command to work. Or rather, I don't understand how its input works.
Right now I have it going in like this:
ang=map.object.getAngleTo(id,x,z,y);
Not really sure what the x, z, and y parts of it are. Right not it doesn't give any errors, but it always tells me ang is now equal to [object d3_ang_class].
Are the x,y,and z paremeters supposed to fit into one variable?
I also tried putting the variable name in the corresponding y slot to see if that was where it goes, no luck either.
I can't get the map.object.getAngleTo command to work. Or rather, I don't understand how its input works.
Right now I have it going in like this:
ang=map.object.getAngleTo(id,x,z,y);
Not really sure what the x, z, and y parts of it are. Right not it doesn't give any errors, but it always tells me ang is now equal to [object d3_ang_class].
Are the x,y,and z paremeters supposed to fit into one variable?
I also tried putting the variable name in the corresponding y slot to see if that was where it goes, no luck either.
; and it will return the angle (red the in the picture).