Properly track some user-initiatied rigid-body modifications.
This commit is contained in:
@@ -250,7 +250,7 @@ impl ParallelIslandSolver {
|
||||
let batch_size = thread.batch_size;
|
||||
for handle in active_bodies[thread.position_writeback_index] {
|
||||
let rb = &mut bodies[*handle];
|
||||
rb.set_position(positions[rb.active_set_offset], false);
|
||||
rb.set_position_internal(positions[rb.active_set_offset]);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -120,7 +120,7 @@ impl PositionSolver {
|
||||
}
|
||||
|
||||
bodies.foreach_active_island_body_mut_internal(island_id, |_, rb| {
|
||||
rb.set_position(self.positions[rb.active_set_offset], false)
|
||||
rb.set_position_internal(self.positions[rb.active_set_offset])
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user