React Three Fiber <Center>

Hello!

Have some problem with “< Center >”
when change array to another , positions of elements dont render with < Center >

Without render

With Render

1 Like

center is an expensive operation, it centers only once, it centers all the geometry you throw into it. if you want to center again, for instance if something changes, there is a cacheKey prop that can hold a value, if that value changes it will re-trigger it.

3 Likes

Thanks! will try :smiley: :love_you_gesture: :crazy_face: