branchrust_reboot/main/vehicles/FixPhysicsPt2cancel
11 Commits over 0 Days - ∞cph!
Switch collision detection mode to Continuous Speculative for cars. Let's eventually look at using Discrete with big blocky world-only colliders, as speculative is far from perfect. But until then this should fix both the slow-motion stops of Continuous and the getting stuck in signposts of Discrete.
Road signs on the test map
Fix vehicles spinning out and sliding strangely:
- Reduced the potential deviation of the centre of mass
- Gave wheels additional sideways friction
- Added AdjustHitForces method to handle any further errant values from PhysX WheelHit results
- Increased minimum vehicle mass, increasing engine power to compensate
Oops, actually replace the layer when asked
Script now allows replacing one layer with another when scanning a scene
Added support for finding layer use in scene, as well as in project
Wrote a script to find all GameObjects in project assets that use a specified layer. Editor window accessed via "Window/What Uses This/What Uses Layer..."