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:
9491c70
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Sat, 22 Oct 2011 05:24:08 +0000
(13:24 +0800)
committer
Ash Tyndall
<
[email protected]
>
Sat, 22 Oct 2011 05:24:08 +0000
(13:24 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
08daa01
..
ee4f614
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-307,7
+307,7
@@
void motion(int x, int y) {
// w: left/right, h: near/far
\r
\r
// **NOTE: Currently a work in progress, does not work correctly
\r
- float angler = 2 * M_PI * ( (rotate*camRotateFactor)/360.0 );
\r
+ float angler = 2 * M_PI * ( (
90 -
rotate*camRotateFactor)/360.0 );
\r
printf("cam angle: %f\n", rotate*camRotateFactor);
\r
// float arc = arctan()
\r
sceneObjs[curObject].x += diffx * cos(angler) * 0.3;
\r
UCC
git Repository :: git.ucc.asn.au