File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export class URDFRenderer extends THREE.WebGLRenderer {
23
23
private _controls : OrbitControls ;
24
24
private _colorSky = new THREE . Color ( ) ;
25
25
private _colorGround = new THREE . Color ( ) ;
26
+ private _gridHeight = 0 ;
26
27
private _robotIndex = - 1 ;
27
28
28
29
/**
@@ -190,6 +191,7 @@ export class URDFRenderer extends THREE.WebGLRenderer {
190
191
this . _colorGround
191
192
) ;
192
193
this . _updateLights ( ) ;
194
+ this . setGridHeight ( this . _gridHeight ) ;
193
195
this . redraw ( ) ;
194
196
}
195
197
@@ -203,6 +205,7 @@ export class URDFRenderer extends THREE.WebGLRenderer {
203
205
. map ( i => i . type )
204
206
. indexOf ( 'GridHelper' ) ;
205
207
this . _scene . children [ gridIndex ] . position . y = height ;
208
+ this . _gridHeight = height ;
206
209
this . redraw ( ) ;
207
210
}
208
211
You can’t perform that action at this time.
0 commit comments