physics.box2d.object: Add 'Z' component to 'Site' to allow small variations in 'Z' to prevent opengl from flipping visuals constantly due to all 'Z's being '0.0'.

This commit is contained in:
Rod Kay
2023-12-09 14:58:37 +11:00
parent 4eb4eecb55
commit ac397cc5db
3 changed files with 7 additions and 3 deletions

View File

@@ -158,7 +158,7 @@ b2d_Object_Site (Object* Self)
the_Site.y = Self->bodyDef.position (1);
}
the_Site.z = 0.0;
the_Site.z = 0.0;
return the_Site;
}