How to use Kit update loop

I have already known the functions
def on_update(dt):
sub = omni.physx.get_physx_interface().subscribe_physics_step_events(on_update)
But I don’t know how to use these in my code.
Is there any example for this loop?

Hi @1031521414 . It can depend on how you want to use it in an extension. Another option that might be easier to get into is the update subscription in Python Scripting Components. Sean shows a good example here: NVIDIA Community Stream | Getting Started: Python Scripting Components - YouTube

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.