Class SpringDamperScratchVars#
Defined in File SpringDamper.h
Inheritance Relationships#
Base Type#
public Karana::Core::BaseVars(Class BaseVars)
Class Documentation#
-
class SpringDamperScratchVars : public Karana::Core::BaseVars#
The Vars for the SpringDamperScratch class.
Public Functions
-
SpringDamperScratchVars(const kc::ks_ptr<const SpringDamperScratch> &scratch)#
SpringDamperScratchVars constructor. The constructor is not meant to be called directly. Please use the create(…) method instead to create an instance.
- Parameters:
scratch – The scratch class associated with this SpringDamperScratchVars.
-
~SpringDamperScratchVars()#
Destructor.
-
virtual kc::NestedVars getAllVars() const override#
Get all the Vars that this SpringDamperScratchVars has.
- Returns:
A map of Vars, where the Var name is the key and the Var is the value.
Public Members
-
kc::ks_ptr<Karana::Core::Var_T<double>> position_error#
Signed length offset from the unsprung length.
-
kc::ks_ptr<Karana::Core::Var_T<km::Vec3>> velocity_error#
Relative linear velocity across the spring.
Public Static Functions
-
static kc::ks_ptr<SpringDamperScratchVars> create(const kc::ks_ptr<const SpringDamperScratch> &scratch)#
Create an instance of the SpringDamperScratchVars.
- Parameters:
scratch – The scratch class associated with this SpringDamperScratchVars.
- Returns:
A pointer to the newly created instance of SpringDamperScratchVars.
-
SpringDamperScratchVars(const kc::ks_ptr<const SpringDamperScratch> &scratch)#