Skip to content

Conversation

@squidt
Copy link
Contributor

@squidt squidt commented Nov 17, 2024

Interactables use an empty Node3D as a parent and 'origin' node to set up both handles and interactable_handle_driven scenes. This PR will attempt to make the scenes stand alone and more intuitive. Sliders can be orientated in the editor and slide along their rotated axis. Hinges can do the same and offer 'hinge_axis' as a variable to allow the user to specify an axis to rotate around.

These are breaking changes and a work in progress. Joysticks must be incorporated and handles tested. I'll adjust the interactable_demo_scene to feature the final changes.

Used to keep track of an 'original' transform before 'driven' changes are made. For example 'slider_position' or 'hinge_position' being changed due to handle movement.
- Remove shadowed variable names
- Removed shadowed variable names
@squidt squidt force-pushed the rework-interactables branch from 68fcf8f to 4c7e466 Compare November 28, 2024 00:43
- Calculate derived variables instead of setting
- Remove unused variable
- Fix the 'get_final_axis()' to just be the local 'hinge_axis' direction set by user
- Remove 'get_final_axis()'
- Remove extra check for change before setting 'hinge_position'
@squidt
Copy link
Contributor Author

squidt commented Nov 28, 2024

Last commit also added 'hinge_wrapping' bool for wrapping between min and max limits (infinitely spinning wheel).

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.

1 participant