| 119 | } |
| 120 | |
| 121 | void Simulation::RunSimulation(EI_CommandContext& simContext, SimulationContext& ctx) |
| 122 | { |
| 123 | std::vector<TressFXHairObject*> hairObjects(ctx.hairStrands.size()); |
| 124 | for (size_t i = 0; i < ctx.hairStrands.size(); i++) |
| 125 | { |
| 126 | // update bone matrices for bone skinning of first two vertices of hair strands |
| 127 | ctx.hairStrands[i]->UpdateBones(simContext); |
| 128 | hairObjects[i] = ctx.hairStrands[i]->GetTressFXHandle(); |
| 129 | } |
| 130 | // Run simulation |
| 131 | mSimulation.Simulate(simContext, hairObjects); |
| 132 | } |
nothing calls this directly
no test coverage detected