Skip to content
Discussion options

You must be logged in to vote

What the EditorCamera does, is to make an Entity as a pivot point, parent the camera to it, and move the camera local z position back. You can then rotate the pivot point and the camera will rotate around that point.

To get the current rotation of the editor camera, just do print(editor_camera.rotation)
You could set the editor camera's rotation to the on creation to avoid adjusting it manually each time.
Example:

from ursina import *
app = Ursina()

Entity(model='plane', scale=8)
EditorCamera(rotation=(45,0,0))
app.run()

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kowshik1234
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants