Skip to content

Asking for help with Camera rotation. #41

@piscothecat

Description

@piscothecat

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions