correct_shift | R Documentation |
takes in flow vector based shift and current_object dataframe which has last headings, and check if they are resonably close if not rejects or modify shift and return. Note: frame2 of last timestep is now frame1, but current_objects still has it as frame2. So id2 in the last frame2 are actually ids related to frame1 now.
correct_shift(this_shift, current_objects, object_id1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.