15#ifndef MOMENTUM_LINEARMOTOR_H
16#define MOMENTUM_LINEARMOTOR_H
18#include "momentum_export.h"
19#include "momentum_namespace.h"
21#include "LinearSecondaryJoint.h"
27 class TargetSpeedController;
45 LinearMotor(agx::TargetSpeedController* constraint);
61#ifndef AGX_MOMENTUM_ANALYSIS_API
86 std::string __str__()
const;
90 agx::TargetSpeedController* getMotor()
const;
A Linear motor will try to reach a target speed with a specified max force.
Definition: LinearMotor.h:38
bool getEnableSpringAtZeroSpeed() const
void setTargetSpeed(double speed)
Set the target speed that the motor tries to reach using the available force.
void setEnableSpringAtZeroSpeed(bool flag)
When target speed is set to zero for the motor, the motor can be specified to act like a spring,...
double getTargetSpeed() const
Get the target speed that the motor tries to reach using the available force.
A base class for motors, springs and ranges on linear constraints.
Definition: LinearSecondaryJoint.h:38
Namespace for Momentum Scripting API.
Definition: AffineMatrix4x4.h:29