WheelComponent
WheelComponent
is aPowertrainComponent
. It acts as a torque sink and can not output to anotherPowertrainComponent
WheelComponent
should not be mixed up withWheelController
orWheelCollider
.WheelComponent
instead interfaces between the powertrain an the wheel.Belongs To
field determines to which WheelGroup theWheelComponent
belongs to. This determines values such as braking, steering and geometry.Inertia
field gets auto-calculated from assignedWheelController
's mass and radius.WheelUAPI
field accepts any wheel controller/collider that uses the WheelUAPI abstract class as its base. The two shipped with the asset areWheelController
andWheelColliderUAPI
. This means that NVP2 can work with any wheel solution as long as it implements WheelUAPI. The reason whyWheelUAPI
is not a pure interface is due to the Unity's serialization (or lack of it) for interfaces.