To to be specific I don't want dbObjectScreenX() function's I want the pretty much the opposite.
I was thinking of returning the dbObjectScreenX() then comparing it to the screen position I want, then changeing it, checking it, then changing it again over and over until its right but WTF who wants to do that, and I'm sure I would never get the depth down ever.
[edit]Here's this:
dbPositionObject(1,dbCameraPositionX(),dbCameraPositionY(),dbCameraPositionZ());
dbRotateObject(1,dbCameraAngleX(),dbCameraAngleY(),dbCameraAngleZ());
dbMoveObject(1,13);
while(dbObjectScreenX(1)>b+10 || dbObjectScreenX(1)<b-10)
{
if(dbObjectScreenX(1)>b)
{
dbPositionObject(1,dbObjectPositionX(1)-.1,dbObjectPositionY(1),dbObjectPositionZ(1));
}else{
dbPositionObject(1,dbObjectPositionX(1)+.1,dbObjectPositionY(1),dbObjectPositionZ(1));
}
}
while(dbObjectScreenY(1)>b+10 || dbObjectScreenY(1)<b-10)
{
if(dbObjectScreenY(1)>b)
{
dbPositionObject(1,dbObjectPositionX(1),dbObjectPositionY(1)+.1,dbObjectPositionZ(1));
}else{
dbPositionObject(1,dbObjectPositionX(1),dbObjectPositionY(1)-.1,dbObjectPositionZ(1));
}
}
The Feild of view is set to thirty btw.. But This code sucks becuse if I want to use it the camera has to face a certain direction.
Please Help me nerdy vertex masters