Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | List of all members
VehiclePhysics.VPGroundMaterialManager Class Reference
Inheritance diagram for VehiclePhysics.VPGroundMaterialManager:
VehiclePhysics.GroundMaterialManagerBase

Public Member Functions

override GroundMaterial GetGroundMaterial (VehicleBase vehicle, GroundMaterialHit groundHit)
 Returns a GroundMaterial from the list based on the given PhysicMaterial. null is also valid as physic material (colliders with no physic material assigned). More...
 
- Public Member Functions inherited from VehiclePhysics.GroundMaterialManagerBase
virtual void GetGroundMaterialCached (VehicleBase vehicle, GroundMaterialHit groundHit, ref GroundMaterialHit cachedGroundHit, ref GroundMaterial groundMaterial)
 Update a GroundMaterial reference by invoking GetGroundMaterial only if the cached physic material has changed. Vehicles call this method for retrieving the ground material per wheel on each physics frame. More...
 

Public Attributes

GroundMaterial fallback = new GroundMaterial()
 
GroundMaterial[] groundMaterials = new GroundMaterial[0]
 

Member Function Documentation

override GroundMaterial VehiclePhysics.VPGroundMaterialManager.GetGroundMaterial ( VehicleBase  vehicle,
GroundMaterialHit  groundHit 
)
inlinevirtual

Returns a GroundMaterial from the list based on the given PhysicMaterial. null is also valid as physic material (colliders with no physic material assigned).

Parameters
vehicleVehicleBase object which is querying the material
groundHitContact information (physic material, collider, position)
Returns
A GroundMaterial from the list, or the fallback material if no matching PhysicMaterial is found

Implements VehiclePhysics.GroundMaterialManagerBase.

Member Data Documentation

GroundMaterial VehiclePhysics.VPGroundMaterialManager.fallback = new GroundMaterial()
GroundMaterial [] VehiclePhysics.VPGroundMaterialManager.groundMaterials = new GroundMaterial[0]

The documentation for this class was generated from the following file: