mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 09:59:18 +02:00
Replace interpolate with std::lerp and glm::mix
This commit is contained in:
@@ -156,7 +156,7 @@ TTraction::Load( cParser *parser, glm::dvec3 const &pOrigin ) {
|
||||
Init(); // przeliczenie parametrów
|
||||
|
||||
// calculate traction location
|
||||
location( interpolate( pPoint2, pPoint1, 0.5 ) );
|
||||
location( glm::mix( pPoint2, pPoint1, 0.5 ) );
|
||||
}
|
||||
|
||||
// retrieves list of the track's end points
|
||||
|
||||
Reference in New Issue
Block a user