| 1602 | } |
| 1603 | |
| 1604 | void Flag::FlagSimulate(Matrix4Par pos, float deltaT, SimulationImportance prec) |
| 1605 | { |
| 1606 | base::Simulate(deltaT, prec); |
| 1607 | if (_cloth) |
| 1608 | { |
| 1609 | Vector3 wind = GLandscape->GetWind(); |
| 1610 | Vector3 inertia = VZero; |
| 1611 | _cloth->Simulate(pos, Speed(), deltaT, wind, inertia, prec); |
| 1612 | } |
| 1613 | } |
| 1614 | |
| 1615 | void Flag::FlagAnimate(FrameBase& frame, int level) |
| 1616 | { |