NWH Vehicle Physics 2 Documentation
Docs ยป NWH:VehiclePhysics2:GroundDetection:SurfaceMap

Surface Map

SurfaceMap inspector.
  • SurfaceMap tells GroundDetection which SurfacePreset to use for which terrain texture and/or object tag.
  • GroundDetection runs a check for each WheelComponent to determine which surface that WheelComponent is on. This is done by checking all the assigned SurfaceMaps in order and if any SurfaceMap has a matching terrain texture index in Terrain Texture Indices list, or the object the wheel is on has the tag from Tags list, Surface Preset will be assigned to that WheelComponent.
Terrain texture indices. Note that counting starts from 0.

Adding a New Surface Map

Adding a gravel SurfaceMap will be used as an example.

  • Add a new SurfaceMap by clicking on + button on the bottom of the list.
  • Check on which texture positions are the gravel textures. In the image above that would be 5 and 7. Add those numbers to the Terrain Texture Indices list.
  • If there are objects that should represent gravel in the scene, assign a tag (e.g. GravelRoad) to those objects and add it to Tags list.
Previous Next

NWH Vehicle Physics 2 Documentation

Table of Contents

  • About
  • Setup
  • Input
  • Vehicle Controller
  • Wheel Controller
  • NWH Common Scripts
  • Trailers
  • GUI
  • Multiplayer
  • Render Pipelines
  • Add-ons
  • FAQ
  • Troubleshooting
  • Demos
  • Changelog
  • Upgrade Notes
  • Support