I am using model_viewer_plus to render some 3D models on my Flutter app. I want to restrict the range of motion (rotation) for the users to be only in x axis, so basically can only rotate right and left instead of all angles. Here is my code for reference.
Align(
alignment: AlignmentDirectional.topEnd,
child: Container(
padding: EdgeInsets.only(top: 20.h),
height: 600,
width: 600,
child: ModelViewer(src: 'assets/3D_Models/ManV2.glb',
autoRotate: false,
)
),
),
Thank you in advance.