Sunday, 1 April 2007

update to below

you can remove the if(d ==0) and use atan2(y, d) instead.

these days people us 3d sdk's that contain a pointAt/lookAt calls. but this can come in handy when there is no framework around, or your just wanting todo some nice eyecandy.

No comments: