Get a top position in selected object

Hi, want to get a selected objects top position

center = meshes[i].getBoundingInfo().boundingBox.center;
camera.position = center
camera.position.y = 40

Now i use this code…but it not working…anyone please guide me

Thankyou

Hey, please share a repro in the playground so we can help further

Hi. @Deltakosh found the solution

this is perfect one for me

Thankyou