checkWorldBounds implemented