2019-08-23 15:35 CEST

View Issue Details Jump to Notes ] Related Changesets ]
IDProjectCategoryView StatusLast Update
0005155Spring engineGeneralpublic2016-03-08 21:11
Reportersilentwings 
Assigned ToKloot 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version101.0 
Target VersionFixed in Version 
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.
Checked infolog.txt for lua Errors
Attached Files

-Relationships
+Relationships

-Notes

~0016021

Kloot (developer)

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

~0016022

Anonymous (viewer)

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

+Related Changesets

-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
+Issue History