2025-07-21 09:45 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003790Spring engineGeneralpublic2013-05-12 07:58
ReporterLicho 
Assigned TojK 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
Product Version94.1 
Target VersionFixed in Version 
Summary0003790: Setting camera to ground height causes spring to freeze
DescriptionExecute 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
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0010690

jK (developer)

already fixed
+Notes

-Issue History
Date Modified Username Field Change
2013-05-12 02:42 Licho New Issue
2013-05-12 07:58 jK Note Added: 0010690
2013-05-12 07:58 jK Status new => resolved
2013-05-12 07:58 jK Resolution open => fixed
2013-05-12 07:58 jK Assigned To => jK
+Issue History