2025-07-22 13:11 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003791Spring engineGeneralpublic2013-05-12 19:42
ReporterLicho 
Assigned TojK 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version94.1 
Target VersionFixed in Version 
Summary0003791: SetCameraState camera direction vector not applied properly
DescriptionWhen 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 ReproduceCall 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
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes
There are no notes attached to this issue.
+Notes

-Issue History
Date Modified Username Field Change
2013-05-12 10:52 Licho New Issue
2013-05-12 19:42 jK Status new => resolved
2013-05-12 19:42 jK Resolution open => fixed
2013-05-12 19:42 jK Assigned To => jK
+Issue History