Skip to content

Smooth animations#152

Merged
bryantran24 merged 32 commits intomainfrom
smooth-animations
Apr 24, 2026
Merged

Smooth animations#152
bryantran24 merged 32 commits intomainfrom
smooth-animations

Conversation

@ChrisRoe2004
Copy link
Copy Markdown
Collaborator

CLOSES #130

Implements shuttle animations between location updates as a toggleable setting. Also adds shuttle rotation based on heading direction as a developer setting for testing and future support for a top-down or 3D vehicle model.

{723A8457-F803-4DA0-AC79-AA2D94CD3732}

Updated shuttle location update method from just changing the location to a smooth animation between location updates.
added shuttle animations key
added shuttle animation getter
added shuttle animations setter
added shuttle animation user preference to loadPreferences().
added setter to update shuttle animations preference
Add shuttle animation state to MapsUIState with default value of true
Pass shuttle animation setting to VehicleMarker
Added aniimationsEnabled parameter to VehicleMarker
Modified location update logic to be conditionally animated based on user preference
imported MapsViewModel
Injected MapsViewModel into SettingScreen
Load map state into SettingsScreen for animation toggle
Added settings item component for toggling shuttle animations
Added shuttle animation toggle to settings screen
Added heading_degrees field to VehicleLocation model
Added shuttle rotation preference key
Added getter for shuttle rotation setting
Added setter for shuttle rotation setting
Added shuttleRotationEnabled to MapsUiState
Load shuttle rotation preference in MapsViewModel
Added setter for shuttle rotation preference
Passed shuttle rotation setting to VehicleMarker
Added rotationEnabled parameter to vehicleMarker
Extracted headingDegrees for shuttle marker rotation
Applied conditional rotation to shuttle markers based on setting
Imported MapsViewModel into developer menu
Loaded map state into developer menu for rotation toggle
Add shuttle rotation toggle to developer menu
@bryantran24 bryantran24 merged commit 87f4371 into main Apr 24, 2026
2 checks passed
@bryantran24 bryantran24 deleted the smooth-animations branch April 24, 2026 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add animated transitions for shuttle positions

2 participants