File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,30 @@ class Renderer {
140
140
this . renderer . setClearColor ( new THREE . Color ( this . color ) , this . opacity ) ;
141
141
}
142
142
143
+ set cameraPosition ( position : THREE . Vector3 ) {
144
+ this . camera . position . set ( position . x , position . y , position . z ) ;
145
+ }
146
+
147
+ get cameraPosition ( ) {
148
+ return this . camera . position ;
149
+ }
150
+
151
+ set cameraUp ( position : THREE . Vector3 ) {
152
+ this . camera . up . set ( position . x , position . y , position . z ) ;
153
+ }
154
+
155
+ get cameraUp ( ) {
156
+ return this . camera . position ;
157
+ }
158
+
159
+ set cameraTarget ( position : THREE . Vector3 ) {
160
+ this . controls . target . set ( position . x , position . y , position . z ) ;
161
+ }
162
+
163
+ get cameraTarget ( ) {
164
+ return this . controls . target ;
165
+ }
166
+
143
167
/**
144
168
* Animation
145
169
*/
You can’t perform that action at this time.
0 commit comments