Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 330 vs 331 for /trunk/Source Code/Rendering/Camera/OrbitCamera.cpp

Diff revisions: vs.
  @@ -22,6 +22,7 @@
22 22
23 23 void OrbitCamera::setTarget(SceneGraphNode* const sgn, const vec3<F32>& offsetDirection) {
24 24 assert(sgn != nullptr);
25 +
25 26 _targetNode = sgn;
26 27 _offsetDir = offsetDirection;
27 28 _offsetDir.normalize();
  @@ -52,7 +53,7 @@
52 53
53 54 static vec3<F32> newTargetOrientation;
54 55
55 - if(/*trans->changedLastFrame() || */_rotationDirty || true){
56 + if (/*trans->changedLastFrame() || */_rotationDirty || true) {
56 57 trans->getOrientation().getEuler(&newTargetOrientation);
57 58 newTargetOrientation.yaw = M_PI - newTargetOrientation.yaw;
58 59 newTargetOrientation += _cameraRotation;
  @@ -67,9 +68,10 @@
67 68
68 69 bool OrbitCamera::mouseMoved(const Input::MouseEvent& arg) {
69 70 I32 zoom = arg.state.Z.rel;
70 - if (zoom != 0)
71 + if (zoom != 0) {
71 72 curRadius(_curRadius += (zoom * _cameraZoomSpeed * -0.01f));
72 -
73 + }
74 +
73 75 return Camera::mouseMoved(arg);
74 76 }
75 77