View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0005498 | Spring engine | Lua | public | 2017-03-24 11:03 | 2017-03-24 15:30 |
| Reporter | lhog | Assigned To | Kloot | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 103.0 +git | ||||
| Summary | 0005498: Rotation angles of Get and Set don't seem to make sense | ||||
| Description | I'm trying to execute the following piece of code for a gunship unit every 2nd frame. MoveCtrl is enabled: _, pYaw, _ = Spring.GetUnitRotation(unitID) Spring.MoveCtrl.SetRotation(unitID, 0, pYaw, 0) Yaw seem to oscillate between +value and -value [f=0052914] pYaw: -0.5681585 [f=0052914] -==================- [f=0052916] pYaw: 0.56815851 Is that expected? | ||||
| Steps To Reproduce | 1) Create a gadget which movectrls a gunship unit 2) write a piece of code + environment as in description 3) Observe result | ||||
| Tags | No tags attached. | ||||
| Checked infolog.txt for Errors | |||||
|
|
Expected, the arguments to Set*Rotation (currently) need to have minus signs in front of them if they are obtained from Get*Rotation. |
|
|
Interesting.... Then feel free to close. |
|
|
NB: ZK already has this taken care of via https://github.com/ZeroK-RTS/Zero-K/blob/master/LuaRules/Utilities/function_override.lua |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2017-03-24 11:03 | lhog | New Issue | |
| 2017-03-24 13:13 | Kloot | Note Added: 0017387 | |
| 2017-03-24 14:34 | lhog | Note Added: 0017388 | |
| 2017-03-24 15:30 | Kloot | Assigned To | => Kloot |
| 2017-03-24 15:30 | Kloot | Status | new => closed |
| 2017-03-24 15:30 | Kloot | Resolution | open => no change required |
| 2017-03-24 15:30 | Kloot | Note Added: 0017389 |