branchrust_reboot/main/door_vehicle_phys_changescancel

2 Commits over 0 Days - ∞cph!

4 Months Ago
Fixed doors not taking into account the speed multiplier set on the open/close states when calculating their animation timings Looks like most doors had incorrect times due to this, leading to vehicle detection volumes being active for too long, sometimes multiple seconds after a door finished animating Updated doors: Wood/stone gates, garage doors, armoured/sheet metal/wood single doors, armoured/sheet metal/wood double doors, twitch drop industrial door
4 Months Ago
Experimental changes to door blockage prevention system to try and prevent vehicles getting stuck in doors, sometimes permanently Do a dot product check when the door detects a blockage and compare that with the direction our door colliders are moving, disregard detected blockages that are on the side of the door that the collider is moving away from (translation: driving into a door that is opening will no longer stop and revert the animation if you drive into the door in the same direction that it is swinging, since that will often involve moving a collider in the opposite direction to vehicle movement and cause chaos) Reduce the length of time that the door physics detection runs for by 20%, so if the animation is more than 80% done it will complete regardless of blockages