-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
There was a problem hiding this 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
@@ -98,15 +100,23 @@ private void Update() | |||
shouldTrigger = eulerAngles.x > 290 ? TriggerDirection.DepartShip : TriggerDirection.None; | |||
} | |||
|
|||
if (CurrentInteractor != null && Mathf.Abs(LastRot - eulerAngles.y) >= 5) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Lever interaction requires a rework before this feature can be added properly. |
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
There was a problem hiding this 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
Simple change, but makes it more inmersive