The collision detection is by default done only when the world is rendered.
You can use IApplication.TestAllCollisionDetectors() to force a test to occur.
If you want to run some logic at specific times of simulation time (such as regular interval), use ISimulation.ScheduleCallback(...) method.