Blazor3D icon indicating copy to clipboard operation
Blazor3D copied to clipboard

Asking for help with Camera rotation.

Open piscothecat opened this issue 1 year ago • 0 comments

Greetings,

I'm really new to programming, and would like to do a small project with blazor that reads STL files from a local drive and displays them on screen. So far I've managed to handle the uploading part and displaying to the screen, but am stuck with the camera rotations setting.

My animation setting: private Camera camera = new OrthographicCamera(left: -20, right: 20, top: 20, bottom: -20, zoom: 0.5f, near: -50) { Position = new Vector3(0, 0, 20), AnimateRotationSettings = new AnimateRotationSettings(true, 0.1, 0, 0.1, radius: 3) { StopAnimationOnOrbitControlMove = true }, LookAt = new Vector3(0.5f, 0, 0) };

View: Screenshot 2024-07-03 081731

How can I rotate my object -90 degrees on the X axis (the cup will be upside down), and still have the same rotation animation (on the Y axis clockwise)?

piscothecat avatar Jul 03 '24 06:07 piscothecat