PyAccSharedMemory icon indicating copy to clipboard operation
PyAccSharedMemory copied to clipboard

Determination of new physics package & unused variable

Open phester66 opened this issue 2 years ago • 0 comments

Variable last_physicsID never set to physics.packed_id therefore the if statement seems to require a full copy of the physics shared memory to determine if there is a new packet. I've modified my copy to the snippet below, but I'm not running github so maybe you could check? About line 1000

    if (physics.packed_id == self.last_physicsID):
        return None
    else:
        #self.physics_old = copy.deepcopy(physics)
        self.last_physicsID = physics.packed_id # added
        return ACC_map(physics, graphics, statics)

Thank you for this package, really appreciated.

phester66 avatar Jan 06 '24 15:01 phester66