SRL Archive - General

help with 3d camera movement


g0tp0t

2010-03-29 16:20:51

i am trying to get a camera to rotate around a box, but when the camera has rotated 180 degrees it abruptly switches direction and goes backward, and then when it gets back to where it started it abrubtly switches direction and does it all over again. here is my code

float I;
void draw() {
lights();
background(0);
I = I + PI/100;
// Change height of the camera with mouseY
camera(int(220*cos(I)), int(220*sin(I))+40, 0, // eyeX, eyeY, eyeZ
0.0, 0.0, 0.0, // centerX, centerY, centerZ
1, 1,0 ); // upX, upY, upZ

in 2d that would create a perfect circle… i think



======

can anyone help??? PLZ????

i luffs yeww

2010-03-29 18:25:44

What language is this? 'o.O?

Wizzup?

2010-03-29 19:26:45

From: i luffs yeww
What language is this? 'o.O?


My guess is C, or related.