Centring 3D model in SceneView not AR
I have a view that loads a 3D model with SceneView. The problem is that I have added a custom class for model rotation, but this causes the model to be displaced instead of being centered on the screen.
class DragRotationController(private val transformableNode: DragTransformableNode,
gestureRecognizer: DragGestureRecognizer
) :
BaseTransformationController(transformableNode, gestureRecognizer) {
companion object {
private const val initialLat =...