Detect all physics bodys currently on screen

Hello! i’m currently making a game, that depends on the possibility to detect all physics bodys that’s currently on screen.

lets say i’m spawning lots of  physics objects, when i’m spawning them i’m giving them a specific linear velocity. After they have been spawned i want to change the linear velocity of all the physics body currently spawned. How should i proceed to make this possible?

You would probably store the display objects in a table.  That way you can loop over the table to see all of the objects.

Rob

yup, i figured :slight_smile: thanks for the fast reply anyways!

You would probably store the display objects in a table.  That way you can loop over the table to see all of the objects.

Rob

yup, i figured :slight_smile: thanks for the fast reply anyways!