Surface Map
SurfaceMap
tellsGroundDetection
whichSurfacePreset
to use for which terrain texture and/or object tag.
GroundDetection
runs a check for eachWheelComponent
to determine which surface thatWheelComponent
is on. This is done by checking all the assignedSurfaceMap
s in order and if anySurfaceMap
has a matching terrain texture index inTerrain Texture Indices
list, or the object the wheel is on has the tag fromTags
list,Surface Preset
will be assigned to thatWheelComponent
.
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 toTags
list.