used camera_control->SetTarget
This commit is contained in:
parent
850602d74c
commit
e4ddd8e062
@ -1 +1 @@
|
||||
Subproject commit 04a2736bac9fe0b8c9c84d4dedd5e455071e4e64
|
||||
Subproject commit a2c8360172946f296c0c3171ebb3a7d03032607d
|
@ -200,7 +200,8 @@ public:
|
||||
return(false);
|
||||
|
||||
camera->pos=Vector3f(10,10,0);
|
||||
//camera->target=Vector3f(0,0,0);
|
||||
|
||||
camera_control->SetTarget(Vector3f(0,0,0));
|
||||
|
||||
//camera->Refresh(); //更新矩阵计算
|
||||
|
||||
|
@ -350,10 +350,6 @@ protected:
|
||||
Vector2f pos(x,y);
|
||||
Vector2f gap=pos-mouse_last_pos;
|
||||
|
||||
bool update=false;
|
||||
//if(gap.x!=0){update=true;if(left)camera->HoriRotate( gap.x/10.0f);else camera->WrapHoriRotate(gap.x);}
|
||||
//if(gap.y!=0){update=true;if(left)camera->VertRotate(-gap.y/10.0f);else camera->WrapVertRotate(gap.y);}
|
||||
|
||||
camera->Rotate(gap,(cur_time-last_time)*5);
|
||||
|
||||
last_time=cur_time;
|
||||
|
Loading…
x
Reference in New Issue
Block a user