Skip to content
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

Vibration to the ship lever when holding it #269

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

Conversation

2duviz2
Copy link

@2duviz2 2duviz2 commented Aug 29, 2024

Simple change, but makes it more inmersive

Copy link
Owner

@DaXcess DaXcess left a comment

Choose a reason for hiding this comment

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

This PR partially reverts commit 6c6e4d4 which is undesirable

Copy link
Author

@2duviz2 2duviz2 left a comment

Choose a reason for hiding this comment

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

Changed base code to the dev branch

@2duviz2 2duviz2 requested a review from DaXcess August 30, 2024 10:34
@@ -98,15 +100,23 @@ private void Update()
shouldTrigger = eulerAngles.x > 290 ? TriggerDirection.DepartShip : TriggerDirection.None;
}

if (CurrentInteractor != null && Mathf.Abs(LastRot - eulerAngles.y) >= 5)
Copy link
Owner

Choose a reason for hiding this comment

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

This checks only the Y angle, which is hardcoded to be only either 90 degrees, or 270 degrees, making this code basically a no-op. The lever interaction requires a rework before such a feature can be added properly.

Copy link
Author

Choose a reason for hiding this comment

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

Ok I'll work on that

@DaXcess
Copy link
Owner

DaXcess commented Aug 30, 2024

Lever interaction requires a rework before this feature can be added properly.

@DaXcess
Copy link
Owner

DaXcess commented Aug 30, 2024

Lever rework has been added to #259, but is not planned for next update

…s an extra

Changed the angle from y to x
Added vibration the pulling the lever
Clamped the levers rotation to avoid it from clipping
@2duviz2 2duviz2 requested a review from DaXcess August 30, 2024 11:32
Copy link
Author

@2duviz2 2duviz2 left a comment

Choose a reason for hiding this comment

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

Changed vibration angle and fixed a bug where the lever would clip below the table

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.

2 participants