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

IC cannot be controlled by player when HUD is off #3

Open
LoogleCZ opened this issue Aug 4, 2018 · 1 comment
Open

IC cannot be controlled by player when HUD is off #3

LoogleCZ opened this issue Aug 4, 2018 · 1 comment

Comments

@LoogleCZ
Copy link
Owner

LoogleCZ commented Aug 4, 2018

Problem

If HUD is disabled (eg. by gsToggleFlightAndNoHUDMode command), a player cannot control IC because of state control and event change is in :draw() method.

Solution

move this piece of code into :update(dt) or :updateTick(dt) methods for availability to use IC when HUD is off, but also preserve accuracy when driving.

@LoogleCZ LoogleCZ added the bug label Aug 4, 2018
@LoogleCZ
Copy link
Owner Author

LoogleCZ commented Aug 8, 2018

Problem is in updating the model when driving. Update and updateTick methods are called between physics and graphics update. This causes a glitch where the button physically has a different position from graphics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant