Initial calculate X, Y and world positions.