mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
LCD Screens in python
Merge with python branch
This commit is contained in:
10
Spring.cpp
10
Spring.cpp
@@ -24,7 +24,9 @@ TSpring::TSpring()
|
||||
restLen = 0;
|
||||
}
|
||||
|
||||
TSpring::~TSpring() {}
|
||||
TSpring::~TSpring()
|
||||
{
|
||||
}
|
||||
|
||||
void TSpring::Init(double nrestLen, double nKs, double nKd)
|
||||
{
|
||||
@@ -43,7 +45,7 @@ bool TSpring::ComputateForces(vector3 pPosition1, vector3 pPosition2)
|
||||
// VectorDifference(&p1->pos,&p2->pos,&deltaP); // Vector distance
|
||||
deltaP = pPosition1 - pPosition2;
|
||||
// dist = VectorLength(&deltaP); // Magnitude of
|
||||
//deltaP
|
||||
// deltaP
|
||||
dist = deltaP.Length();
|
||||
if (dist == 0)
|
||||
{
|
||||
@@ -72,7 +74,9 @@ bool TSpring::ComputateForces(vector3 pPosition1, vector3 pPosition2)
|
||||
return true;
|
||||
}
|
||||
|
||||
void TSpring::Render() {}
|
||||
void TSpring::Render()
|
||||
{
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user