View Issue Details

IDProjectCategoryView StatusLast Update
0005155Spring engineGeneralpublic2016-03-08 21:11
Reportersilentwings Assigned ToKloot  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version101.0 
Summary0005155: Get/SetUnitRotation don't match
DescriptionSee gadget, which gets rotation, and then sets it, changing only yaw by +0.1. This should result in the unit spinning on its y axis. Instead the unit just vibrates.



Steps To ReproduceUse the attached gadget and give a unit.
Additional InformationUsing Set/GetUnitDirection doesn't work as substitute, because MoveCtrl doesn't have SetUnitDirection.

The wiki lists the args for MoveCtrl.SetUnitRotation as (number unitID, number rotX, number rotY, number rotZ), but besides not matching the Get*, this doesn't make sense to me - and trying values for rotX,Y,Z not as rotation but as direction just results in more vibration.
TagsNo tags attached.
Attached Files
rotation_is_borked.lua (Attachment missing)
Checked infolog.txt for Errors

Activities

Kloot

2016-03-08 20:11

developer   ~0016021

Spring.SetUnitRotation works, just MoveCtrl.SetRotation has an issue apparently.

Anonymous

2016-03-08 21:11

viewer   ~0016022

Fix 9639d24559e496fdbb8d3d5cb3ba2adb4a908d6e committed to develop branch: fix 0005155, repo: spring changeset id: 6797

Issue History

Date Modified Username Field Change
2016-03-08 19:44 silentwings New Issue
2016-03-08 19:44 silentwings File Added: rotation_is_borked.lua
2016-03-08 20:11 Kloot Note Added: 0016021
2016-03-08 20:24 Kloot Assigned To => Kloot
2016-03-08 20:24 Kloot Status new => assigned
2016-03-08 21:11 Changeset attached => spring develop 9639d245
2016-03-08 21:11 Anonymous Note Added: 0016022
2016-03-08 21:11 Anonymous Status assigned => resolved
2016-03-08 21:11 Anonymous Resolution open => fixed