@@ -37,6 +37,11 @@ static PyObject *py_ue_feditor_viewport_client_get_view_location(ue_PyFEditorVie
3737 return py_ue_new_fvector (self->editor_viewport_client ->GetViewLocation ());
3838}
3939
40+ static PyObject *py_ue_feditor_viewport_client_get_view_rotation (ue_PyFEditorViewportClient *self, PyObject * args)
41+ {
42+ return py_ue_new_frotator (self->editor_viewport_client ->GetViewRotation ());
43+ }
44+
4045static PyObject *py_ue_feditor_viewport_client_get_camera_speed (ue_PyFEditorViewportClient *self, PyObject * args)
4146{
4247 return PyFloat_FromDouble (self->editor_viewport_client ->GetCameraSpeed ());
@@ -84,6 +89,15 @@ static PyObject *py_ue_feditor_viewport_client_set_view_location(ue_PyFEditorVie
8489 Py_RETURN_NONE;
8590}
8691
92+ static PyObject *py_ue_feditor_viewport_client_set_view_rotation (ue_PyFEditorViewportClient *self, PyObject * args)
93+ {
94+ FRotator rot;
95+ if (!py_ue_rotator_arg (args, rot))
96+ return PyErr_Format (PyExc_Exception, " argument is not a FRotator" );
97+ self->editor_viewport_client ->SetViewRotation (rot);
98+ Py_RETURN_NONE;
99+ }
100+
87101static PyObject *py_ue_feditor_viewport_client_set_realtime (ue_PyFEditorViewportClient *self, PyObject * args)
88102{
89103 PyObject* bInRealtime;
@@ -101,12 +115,14 @@ static PyMethodDef ue_PyFEditorViewportClient_methods[] = {
101115 { " tick" , (PyCFunction)py_ue_feditor_viewport_client_tick, METH_VARARGS, " " },
102116 { " get_look_at_location" , (PyCFunction)py_ue_feditor_viewport_client_get_look_at_location, METH_VARARGS, " " },
103117 { " get_view_location" , (PyCFunction)py_ue_feditor_viewport_client_get_view_location, METH_VARARGS, " " },
118+ { " get_view_rotation" , (PyCFunction)py_ue_feditor_viewport_client_get_view_location, METH_VARARGS, " " },
104119 { " get_camera_speed" , (PyCFunction)py_ue_feditor_viewport_client_get_camera_speed, METH_VARARGS, " " },
105120 { " get_viewport_dimensions" , (PyCFunction)py_ue_feditor_viewport_client_get_viewport_dimensions, METH_VARARGS, " " },
106121 { " is_visible" , (PyCFunction)py_ue_feditor_viewport_client_is_visible, METH_VARARGS, " " },
107122 { " get_scene_depth_at_location" , (PyCFunction)py_ue_feditor_viewport_client_get_scene_depth_at_location, METH_VARARGS, " " },
108123 { " set_look_at_location" , (PyCFunction)py_ue_feditor_viewport_client_set_look_at_location, METH_VARARGS, " " },
109124 { " set_view_location" , (PyCFunction)py_ue_feditor_viewport_client_set_view_location, METH_VARARGS, " " },
125+ { " set_view_rotation" , (PyCFunction)py_ue_feditor_viewport_client_set_view_rotation, METH_VARARGS, " " },
110126 { " set_realtime" , (PyCFunction)py_ue_feditor_viewport_client_set_realtime, METH_VARARGS, " " },
111127 { nullptr } /* Sentinel */
112128};
0 commit comments