43 virtual agx::Real getCurrentPowerTimeIntegral()
const override;
55 virtual agx::Real variableLookupFunction( )
const override;
60 virtual agx::Real resultScalerFunction()
const override;
135 virtual bool preUpdate(
agx::Real timeStep)
override;
181 virtual agx::Real calculateThrottle() = 0;
271 virtual agx::Real calculateThrottle()
override;
331 void ignition(
bool ignition );
341 bool isRunning( )
const;
397 virtual bool preUpdate(
agx::Real timeStamp )
override;
457 void setTargetVelocity(
agx::Real velocity);
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
ThrottleCalculatorRef m_pidController
void AGXPHYSICS_EXPORT shutdown()
Shutdown of the AGX Dynamics API will be done when the number of shutdown matches the number of calls...
Utility class to hold custom implementations of constraints.
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive...
agx::ref_ptr< ThrottleCalculator > ThrottleCalculatorRef
A constraint holding a single VelocityConstraintImplementation.
Inherit from the ThrottleCalculator and implement the calculateThrottle() function to control the tor...
An engine that tries to hold a fixed velocity.
#define AGX_DECLARE_POINTER_TYPES(type)
A Shaft is the most basic PowerLine Unit.
Power generator that adds torque to the engine according to a lookup table.
A library of agxPowerLine components designed to model the various parts of a vehicle drive train...
agx::ref_ptr< FixedVelocityEngine > FixedVelocityEngineRef
ThrottleCalculator that strives to keep the engine at some given RPM.
Base class providing referencing counted objects.
The rotational has one rotational degree of freedom.
agx::ref_ptr< PidControlledEngine > PidControlledEngineRef
PidControlledEngine * m_engine
agx::ref_ptr< RpmController > RpmControllerRef
Implementation of a combustion engine.
Abstract base class for storing/restoring a line/drums with version control.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Class for writing serialized data in binary format to a stream.
agxDriveTrain::VelocityConstraintRef m_velocityConstraint
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
A torque generator adds torque to the body of a rotational dimension.
An engine that is driven by an EnginePowerGenerator.
#define DOXYGEN_END_INTERNAL_BLOCK()
Will generate power by adding a load to a physical dimension.
#define DOXYGEN_START_INTERNAL_BLOCK()
agxPowerLine::PowerGeneratorRef m_generator