Documentation
¶
Index ¶
Constants ¶
View Source
const (
Gravity = 9.8
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Car ¶
type EngineProfile ¶
type Profile ¶
type Profile struct { Mass float64 //Kg Engine EngineProfile Drag float64 RollingResistance float64 BreakingPower float64 //N CenterOfGravityHeight float64 //m RearAxelDisplacement float64 //m FrontAxelDisplacement float64 //m TyreFrictionMu float64 TyreTractionConstant float64 GearRatio float64 DifferentialRatio float64 TransmissionEfficiency float64 WheelRadius float64 WheelMass float64 MaxStreeringAngle float64 }
type SimpleEngine ¶
type SimpleEngine struct {
// contains filtered or unexported fields
}
func (*SimpleEngine) StallingRPM ¶
func (engine *SimpleEngine) StallingRPM() float64
func (*SimpleEngine) Torque ¶
func (engine *SimpleEngine) Torque(rpm float64) float64
Click to show internal directories.
Click to hide internal directories.