Tune physics again
This commit is contained in:
parent
cf6a38c96b
commit
1c1f8a83bb
3 changed files with 13 additions and 6 deletions
12
racing.h
12
racing.h
|
@ -58,10 +58,10 @@ typedef int32_t LCR_GameUnit; ///< abstract game unit
|
|||
#define LCR_PHYSICS_UNIT 4096 ///< len. of square for phys. engine
|
||||
|
||||
#define TPE_RESHAPE_TENSION_LIMIT 3
|
||||
#define TPE_RESHAPE_ITERATIONS 15 /** a lot, but seems to help with the
|
||||
bug that happens when driving onto
|
||||
curved ramp diagonally at high
|
||||
speed */
|
||||
#define TPE_RESHAPE_ITERATIONS 3 /**< Empirically tested, seems to have a
|
||||
big impact on bugs that happen when
|
||||
driving onto a curved ramp under
|
||||
various angles. */
|
||||
#include "general.h"
|
||||
#include "map.h"
|
||||
#include "tinyphysicsengine.h"
|
||||
|
@ -76,9 +76,9 @@ typedef int32_t LCR_GameUnit; ///< abstract game unit
|
|||
#define LCR_CAR_STEER_FRICTION ((3 * TPE_F) / 4)
|
||||
#define LCR_CAR_ELASTICITY (TPE_F / 64)
|
||||
#define LCR_CAR_ACCELERATION (LCR_PHYSICS_UNIT / 9)
|
||||
#define LCR_CAR_STEER_SPEED 52 ///< 0 to 64, lower is faster
|
||||
#define LCR_CAR_STEER_SLOWDOWN 128 ///< slows down steering at higher speeds
|
||||
#define LCR_CAR_STEER_MAX (LCR_GAME_UNIT / 2)
|
||||
#define LCR_CAR_STEER_SPEED 50 ///< 0 to 64, lower is faster
|
||||
#define LCR_CAR_STEER_SLOWDOWN 64 ///< slows down steering at higher speeds
|
||||
|
||||
#define LCR_CAR_ACCELERATOR_FACTOR 2
|
||||
#define LCR_CAR_WHEEL_AIR_ROTATION_SPEED (LCR_GAME_UNIT / 32)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue