Fix Drag Mode Angular Momentum [AARD-1966]
#1215
Open
+17
−33
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Task
AARD-1966
Gamepieces and other objects gain excessive angular momentum when held for short periods of time causing them to get launched once released.
Symptom
Gamepieces and other picked-up objects behave erratically with regards to angular momentum and do a lot of undesirable spinning
Solution
Replaced the calculated torques from gravity with manual control to allow the user to control yaw (absolute coordinates) and pitch (camera relative) of whatever they're carrying. I believe this is the behavior that god mode used to have
Verification
Spawn a field, enter drag mode, start dragging things, fling them, angular momentum looks not crazy. The arrow keys control the angle, although other input consumers aren't blocked currently so a robot with Luna's control scheme would drive around. This could be changed if we would rather block all inputs during drag mode
Before merging, ensure the following criteria are met: