newton.sensors.populate_contacts#

newton.sensors.populate_contacts(contacts, solver)[source]#

Populate a Contacts object with the latest contact data from a solver.

This function updates the given contacts object in-place using the contact information from the provided solver. It is typically called after a simulation step to refresh the contact data for use in sensors or analysis.

Parameters:
  • contacts (Contacts) – The Contacts object to be populated or updated.

  • solver (SolverBase) – The solver instance containing the latest contact results.

Returns:

None