| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
|---|---|---|---|---|---|---|---|---|---|
| 0003790 | Spring engine | General | public | 2013-05-12 02:42 | 2013-05-12 07:58 | ||||
| Reporter | Licho | ||||||||
| Assigned To | jK | ||||||||
| Priority | normal | Severity | crash | Reproducibility | always | ||||
| Status | resolved | Resolution | fixed | ||||||
| Product Version | 94.1 | ||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0003790: Setting camera to ground height causes spring to freeze | ||||||||
| Description | Execute this function with parameter 0, spring freezes Also freezes in 91.0, works in 88.0 Behavior of this function changes too unexpectedly between 88.0 and 91.0 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.0); end  | ||||||||
| Tags | No tags attached. | ||||||||
| Checked infolog.txt for Errors | |||||||||
| Attached Files | 
 | ||||||||

	
