MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / FlagSimulate

Method FlagSimulate

engine/Poseidon/World/Detection/Detector.cpp:1604–1613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1602}
1603
1604void 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
1615void Flag::FlagAnimate(FrameBase& frame, int level)
1616{

Callers 1

SimulateMethod · 0.80

Calls 2

GetWindMethod · 0.80
SimulateMethod · 0.45

Tested by

no test coverage detected