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

Speed blocks #29

Closed
A5H73Y opened this issue May 20, 2020 · 0 comments
Closed

Speed blocks #29

A5H73Y opened this issue May 20, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request
Projects

Comments

@A5H73Y
Copy link
Owner

A5H73Y commented May 20, 2020

The ability to specify various speed blocks, creating an association between the Material and the boost that should be gained from driving over it.
The speed will be stored as a modifier i.e. "0.1" would be 10% of the original speed, "1" would be the original speed, "10" would be 10x their speed etc.

When driving over a material such as GRASS, this can have a negative effect on the speed (to stay on the intended road for example).

After experimenting, I've decided that the speed modifier will belong to the actual Car object, by increasing it's currentSpeed, it's then the Car's responsibility to gradually bring the speed back down to the limit.

@A5H73Y A5H73Y added the enhancement New feature or request label May 20, 2020
@A5H73Y A5H73Y self-assigned this May 20, 2020
@A5H73Y A5H73Y added this to In progress in Carz v7.0 May 20, 2020
A5H73Y added a commit that referenced this issue May 20, 2020
…it exceeds the Car's maximum speed.

Fix refueling not applying
@A5H73Y A5H73Y moved this from In progress to Done in Carz v7.0 May 23, 2020
@A5H73Y A5H73Y closed this as completed May 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Carz v7.0
  
Done
Development

No branches or pull requests

1 participant