View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0003791 | Spring engine | General | public | 2013-05-12 10:52 | 2013-05-12 19:42 | ||||
Reporter | Licho | ||||||||
Assigned To | jK | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 94.1 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0003791: SetCameraState camera direction vector not applied properly | ||||||||
Description | When you set camera vector to 0,-1,0 its not looking directly below but its tilted. In 91.0 it works as expected | ||||||||
Steps To Reproduce | Call the function below with no parameter function ResetCamera(height) local groundHeight = Spring.GetGroundHeight(Game.mapSizeX*0.5,Game.mapSizeZ*0.5); local pos = { Game.mapSizeX*0.5, groundHeight+(height or 3000) , Game.mapSizeZ*0.5 }; local dir = { 0, -1, 0 }; local rot = { -math.pi*0.5, math.pi, 0 }; Spring.SetCameraState( {mode=fpsCamID, px=pos[1],py=pos[2],pz=pos[3], dx=dir[1],dy=dir[2],dz=dir[3], rx=rot[1],ry=rot[2],rz=rot[3]} , 0.2); end | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|