Class LOD
A single Level of Detail band. Distant vehicles run fewer active components and cheaper updates, so each LOD holds the distance at which the vehicle drops to that detail level.
Namespace: NWH.VehiclePhysics2
Assembly: NWH.VehiclePhysics2.dll
Syntax
[Serializable]
[CreateAssetMenu(fileName = "NWH Vehicle Physics 2", menuName = "NWH/Vehicle Physics 2/LOD", order = 1)]
public class LOD : ScriptableObject
Remarks
Entries are ordered ascending by distance, highest detail first. For example LOD0 at 0-50m, LOD1 at 50-100m, LOD2 beyond 100m.
Fields
distance
Upper edge of this LOD's distance band, in meters. This LOD is used while the vehicle is closer to the camera than this distance and past the previous entry's distance. Entries are ordered ascending; the last assigned entry is used for everything beyond it.
Declaration
public float distance
Field Value
| Type | Description |
|---|---|
| float |