Fix physics tick counter
The counter is now incremented at the start of a physics tick rather than the end.
This commit is contained in:
@ -98,7 +98,7 @@ protected:
|
||||
struct InterpolationData {
|
||||
Transform2D xform_curr;
|
||||
Transform2D xform_prev;
|
||||
uint32_t last_update_physics_tick = 0;
|
||||
uint32_t last_update_physics_tick = UINT32_MAX;
|
||||
} _interpolation_data;
|
||||
|
||||
protected:
|
||||
|
||||
@ -70,7 +70,7 @@ class NavigationAgent2D : public Node {
|
||||
bool target_reached = false;
|
||||
bool navigation_finished = true;
|
||||
// No initialized on purpose
|
||||
uint32_t update_frame_id = 0;
|
||||
uint32_t update_frame_id = UINT32_MAX;
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
||||
Reference in New Issue
Block a user