Start ghost

This commit is contained in:
Miloslav Ciz 2025-01-21 22:46:56 +01:00
parent c0f5e5cf5b
commit 0a91d5f54e
4 changed files with 105 additions and 9 deletions

View file

@ -205,4 +205,19 @@
#define LCR_SETTING_TIME_MULTIPLIER 100
#endif
#ifndef LCR_SETTING_GHOST_STEP
/** Step (in physics engine ticks) by which the samples for ghost car will be
spaced (positions inbetween will be interpolated). Lower step along with more
ghost samples should result in more accurate ghost animation, but will eat up
more memory. This should ideally be kept a power of two. */
#define LCR_SETTING_GHOST_STEP 16
#endif
#ifndef LCR_SETTING_GHOST_MAX_SAMPLES
/** Maximum number of samples the ghost car will be able to use. Higher value
should generally result in more accurate ghost animation, but will eat up more
memory. Value 0 disables ghosts. */
#define LCR_SETTING_GHOST_MAX_SAMPLES 128
#endif
#endif // guard