mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
shader fix, vehicle move feature
This commit is contained in:
14
DynObj.cpp
14
DynObj.cpp
@@ -3507,6 +3507,20 @@ glm::dvec3 TDynamicObject::get_future_movement() const
|
||||
return m_future_movement;
|
||||
}
|
||||
|
||||
void TDynamicObject::move_set(double distance)
|
||||
{
|
||||
TDynamicObject *d = this;
|
||||
while( d ) {
|
||||
d->Move( distance * d->DirectionGet() );
|
||||
d = d->Next(); // pozostałe też
|
||||
}
|
||||
d = Prev();
|
||||
while( d ) {
|
||||
d->Move( distance * d->DirectionGet() );
|
||||
d = d->Prev(); // w drugą stronę też
|
||||
}
|
||||
}
|
||||
|
||||
bool TDynamicObject::FastUpdate(double dt)
|
||||
{
|
||||
if (dt == 0.0)
|
||||
|
||||
Reference in New Issue
Block a user