git.ucc.asn.au
/
atyndall
/
cits2231.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ffbf1f
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Sat, 22 Oct 2011 02:51:08 +0000
(10:51 +0800)
committer
Ash Tyndall
<
[email protected]
>
Sat, 22 Oct 2011 02:51:08 +0000
(10:51 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
39ff405
..
b724f24
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-308,7
+308,7
@@
void motion(int x, int y) {
// w: left/right, h: near/far
\r
//so.x, so.y, so.z
\r
//sceneObjs[curObject].x += (x - startx)*leftrightFactor;
\r
-
\r
+ printf("cam angle: %f\n", camAngle*camAngleFactor);
\r
sceneObjs[curObject].x += (x - startx) * sin(90 - camAngle*camAngleFactor);
\r
sceneObjs[curObject].z += (x - startx) * cos(90 - camAngle*camAngleFactor);
\r
} else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) {
\r
UCC
git Repository :: git.ucc.asn.au