Beruflich Dokumente
Kultur Dokumente
###########################################################
# NAME: basic
#
# this file gives you raw & unaltered force as integrated by physics engine
# acting on steering rack of the vehicle physical model
# Summing these two valuee effectievly gives you rackforce.
#
###########################################################
#above left and right rack are axial forces in tierods. To project them to rack,
multiply by respective left right below "rack proj"
#FL_rack_proj
#FR_rack_proj
#arm force is that same thing, already done in game. If left / right need
manipulation, exposed them "un projected" here.
#(rack_force ( + ( * FL_tierod FL_rack_proj ) ( * FR_tierod FR_rack_proj)))
# rack_force = FL_rack_left * FL_rack_proj + FR_rack_righ * FR_rack_proj
###########################################################
#
#
#Some constants
#
##general multipliers (from ams1)
(max_overall_force 11500.0)
(recip_force ( / 1.0 max_overall_force))
#mfasr scaler
(rack_scaled ( * arm_force ( / max_overall_force M_max_force_at_rack)))
(rack_scaled ( * rack_scaled recip_force))
(rack rack_scaled)
###########################################################
#####################################################
#####################################################
#PARKING LOT FORCE :)
(output rack)
######################################################
######################################################
##(LOW FORCE BOOST)
################
######################################################
######################################################
####################################################
####################################################
(doom_check output)
#third info container used for output (before lockstops, after clipping and gain)
(info3 (smooth output 0.7))
(stiffness 3.0)
(damping 5.0)
#adjust stifness based on overall ffb gain from game.
(gain_scale ( - 1.3 gain))
#adjust stiffness and damping separate, based on vehicle steer ratio (1:10 taken as
"nominal" ratio, downscale below, above leave intact)
(ratio_scale ( / steer_ratio 10.0))
(ratio_scale ( min ratio_scale 1.0))
(stiffness ( * stiffness 0.5 ratio_scale))
(damping ( * damping ratio_scale))
(histogram output)