vertexUpdate method
dynamic
vertexUpdate()
Implementation
vertexUpdate() {
size = vertexShape.size(vertex);
algorithm.$size.value = Size(game.size.x, game.size.y);
algorithmCompute(algorithm);
hitBox?.position = position;
if (hitBox != null) vertexShape.updateHitBox(vertex, hitBox!);
vertexShape.setPaint(vertex);
position.x = vertex.position.x;
position.y = vertex.position.y;
if (Util.distance(position, vertex.position) < 1 && !collisionEnable) {
collisionEnable = true;
}
}