![]() |
Kerbal Space Program
1.12.4
|
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] |
|
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).
| vehicle | VehicleBase object which is querying the material |
| groundHit | Contact information (physic material, collider, position) |
Implements VehiclePhysics.GroundMaterialManagerBase.
| GroundMaterial VehiclePhysics.VPGroundMaterialManager.fallback = new GroundMaterial() |
| GroundMaterial [] VehiclePhysics.VPGroundMaterialManager.groundMaterials = new GroundMaterial[0] |
1.8.7