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

Crash sensitivty #61

Closed
shazz opened this issue Dec 4, 2021 · 2 comments
Closed

Crash sensitivty #61

shazz opened this issue Dec 4, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request
Projects

Comments

@shazz
Copy link
Collaborator

shazz commented Dec 4, 2021

In the original game, it is easier to crash against the borders (mostly every time at full speed) than in pysprint

@shazz shazz changed the title Crash sensitivty Crash sensitivty / rebound Dec 4, 2021
@shazz shazz added the enhancement New feature or request label Dec 5, 2021
@salem-ok salem-ok added this to In progress in PySprint Dec 5, 2021
@salem-ok
Copy link
Owner

salem-ok commented Dec 5, 2021

Thanks @shazz

  • I'll create a separate issue for the rebound and look into
  • For the crash, there are many parameters you can use to adjust that in pysprint_car.py. IMy perception with the original is that you crash at max speed, only after being at high speed for a few seconds, so I've implemented that parameter, but have not been able to perfectly calibrate it)

generally if you lower a bit the collision_area_threshold (% of the car sprite area in collision with the track) and/or the crash_certainty_threshold (my special sauce number calculated from all the parameters)), you will crash a lot more.

    #Collision Settings
    diagonal_detection_tolerance = 2
    vector_simulation_length = 10
    side_detection_tolerance = 7
    max_speed_crash_threshold = 4000#3000
    collision_area_threshold = 80#75
    #Threshold over which theer is a higher chance to crash
    speed_crash_probability_threshold = 0.85
    #% increase of probability to crash if condition is true
    speed_crash_probability_penalty = 1.2
    sensitive_border_crash_probability_penalty = 1.4
    #Max Random number drawn to calculate Crash probability
    crash_random_max = 60
    crash_certainty_treshold = 85#80

@salem-ok salem-ok changed the title Crash sensitivty / rebound Crash sensitivty Dec 5, 2021
@salem-ok
Copy link
Owner

salem-ok commented Dec 5, 2021

@shazz I've adjusted the parameters to make the crash more prone to happen. Let me knwo if it feels more realistic to you now!

@salem-ok salem-ok moved this from In progress to Done in PySprint Dec 5, 2021
@salem-ok salem-ok moved this from Done to In progress in PySprint Dec 5, 2021
@salem-ok salem-ok reopened this Dec 5, 2021
@salem-ok salem-ok assigned salem-ok and unassigned shazz Dec 5, 2021
@salem-ok salem-ok assigned shazz and unassigned salem-ok Dec 5, 2021
@salem-ok salem-ok moved this from In progress to Done in PySprint Dec 9, 2021
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
Development

No branches or pull requests

2 participants