Kerbal Space Program
1.12.4
|
Base class for the components that host and manage the materials for the scene. More...
Public Member Functions | |
abstract GroundMaterial | GetGroundMaterial (VehicleBase vehicle, GroundMaterialHit groundHit) |
Must return a GroundMaterial object for the given GroundMaterialHit and vehicle. More... | |
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... | |
Base class for the components that host and manage the materials for the scene.
|
pure virtual |
Must return a GroundMaterial object for the given GroundMaterialHit and vehicle.
vehicle | VehicleBase object which is querying the material. |
groundHit | Contact information |
Implemented in VehiclePhysics.VPGroundMaterialManager.
|
inlinevirtual |
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.
vehicle | VehicleBase object which is querying the material. |
groundHit | Contact information. |
cachedGroundHit | Reference to the cached contact information. Will be updated when necessary. |
groundMaterial | Reference to the ground material. Will be updated only when the physic material changes. |