View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0002222 | Spring engine | Lua | public | 2010-11-14 00:45 | 2010-11-20 00:51 | ||||
Reporter | quantum | ||||||||
Assigned To | Kloot | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 0.82.6.1 | ||||||||
Target Version | Fixed in Version | 0.82.7 | |||||||
Summary | 0002222: Rotated units are turned inside out at certain angles | ||||||||
Description | This code slowly spins a commander when placed in a gadget. It will reproduce the problem (tested with an s3o unit). local testUnitName = "corcom" function gadget:GameFrame(n) for _, unitID in ipairs(Spring.GetAllUnits()) do local unitDefID = Spring.GetUnitDefID(unitID) local unitDef = UnitDefs[unitDefID] if unitDef.name == testUnitName then local rotation = n/100 Spring.SendMessage(rotation) Spring.SetUnitRotation(unitID, 0, rotation, 0) end end end | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|