finish threaded physics implementation
This commit is contained in:
@ -37,6 +37,7 @@ auto StateManager::FillGraph() -> void {
|
|||||||
std::vector<std::pair<std::size_t, std::size_t>>>
|
std::vector<std::pair<std::size_t, std::size_t>>>
|
||||||
closure = current_state.Closure();
|
closure = current_state.Closure();
|
||||||
|
|
||||||
|
physics.ClearCmd();
|
||||||
physics.AddMassSpringsCmd(closure.first.size(), closure.second);
|
physics.AddMassSpringsCmd(closure.first.size(), closure.second);
|
||||||
for (const State &state : closure.first) {
|
for (const State &state : closure.first) {
|
||||||
states.insert(std::make_pair(state, states.size()));
|
states.insert(std::make_pair(state, states.size()));
|
||||||
|
|||||||
Reference in New Issue
Block a user