GLBasic forum

Main forum => GLBasic - en => Topic started by: Richard Rae on 2009-Jan-06

Title: rotating camera around object north to south.
Post by: Richard Rae on 2009-Jan-06
As the title says.How can I get the camera to rotate around an object north to south(ie x=0 radius 100).Everytme I try the camera gets to 90 deg or -90deg then flips and starts moving the other way.
Title: Re: rotating camera around object north to south.
Post by: Moru on 2009-Jan-06
you need to play a little with SIN() and COS(), see the Math forum for examples

Edit: http://www.glbasic.com/forum/index.php?topic=2241.0 (http://www.glbasic.com/forum/index.php?topic=2241.0)