Hello
I have been looking through the demos and forums for an example of how to get a list of objects that have moved during the timestep so I can update their visual mesh couterparts. Could you point me in the right direction? The demo code is complicated and not well commented and I'm finding the learning curve quite steep . The demos render the physics shapes directly so I can't find an example that would help me here.
Thanks
Sync physics With Display Models
Re: Sync physics With Display Models
The demos just use a super simple brute force 'start from scratch, add every single object in existence, every single frame' approach.
The Simulation.Bodies.ActiveSet (which aliases Simulation.Bodies.Sets[0]) contains all bodies which are currently awake, which is a decent proxy for moving objects.
The Simulation.Bodies.ActiveSet (which aliases Simulation.Bodies.Sets[0]) contains all bodies which are currently awake, which is a decent proxy for moving objects.