M8 Greyhound wheels can appear to clip through the hull when turned

Issue #39 resolved
Colin Basnett created an issue

No description provided.

Comments (2)

  1. Matt Hands

    Fixed. It's in MaxSteerAngleCurve settings. Had to work out what interpolation functions were all about, so useful to learn. Maximum permitted steering is a formula based on the speed element of the actor's Velocity.

    Original line from GH defprops:

    MaxSteerAngleCurve=(Points=((OutVal=45.0),(InVal=300.0,OutVal=30.0),(InVal=500.0,OutVal=20.0),(InVal=600.0,OutVal=15.0),(InVal=1000000000.0,OutVal=10.0)))

    What this is saying is at Velocity zero the max permitted steering is 45 degrees, at vel 300 it's 30 deg, at 500 vel it's 20 deg, at 600 vel it's 15 deg and eventually it hits a low of 10 deg. Velocity is Unreal units per second, so every kph is a Velocity of 16.764

    To stop the last bit of wheel clipping you have to reduce maximum steering to 20 degrees. This affects speeds below 30kph and at very low speeds the reduction in steering appears drastic - but in practice it's not really noticeable. Modified line:

    MaxSteerAngleCurve=(Points=((OutVal=20.0),(InVal=500.0,OutVal=20.0),(InVal=600.0,OutVal=15.0),(InVal=1000000000.0,OutVal=10.0)))

    So max 20 degrees steering up to vel of 500 (30 kph), dropping to 15 deg at 36 kph and thenh reducing down towards 10 deg.

  2. Log in to comment