Skip to content

Fix Drag Mode Angular Momentum [AARD-1966] #1215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

rutmanz
Copy link
Member

@rutmanz rutmanz commented Jul 15, 2025

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:

  • All acceptance criteria outlined in the ticket are met.
  • Necessary test cases have been added and updated.
  • A feature toggle or safe disable path has been added (if applicable).
  • User-facing polish:
    • Ask: "Is this ready-looking?"
  • Cross-linking between Jira and GitHub:
    • PR links to the relevant Jira issue.
    • Jira ticket has a comment referencing this PR.

@rutmanz rutmanz requested review from a team as code owners July 15, 2025 21:03
@rutmanz rutmanz self-assigned this Jul 15, 2025
@rutmanz rutmanz added the gameplay Relating to the playability of Synthesis label Jul 15, 2025
@AlexD717 AlexD717 marked this pull request as draft July 15, 2025 21:34
@AlexD717 AlexD717 marked this pull request as ready for review July 15, 2025 21:35
@rutmanz rutmanz marked this pull request as draft July 15, 2025 21:43
Copy link
Contributor

@azaleacolburn azaleacolburn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no angular velocity, no problems! lgtm :P

@rutmanz rutmanz force-pushed the zachr/1966/dragmodemomentum branch from b50e615 to 5167227 Compare July 15, 2025 22:29
@rutmanz rutmanz marked this pull request as ready for review July 15, 2025 22:30
Copy link
Contributor

@ariesninjadev ariesninjadev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hopefully this works on azalea's laptop

Copy link
Member

@AlexD717 AlexD717 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gameplay Relating to the playability of Synthesis
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants