bzselect now clean + KVview adapted
This commit is contained in:
@@ -61,11 +61,12 @@ export class AgentPreview{
|
||||
return(this._animation)
|
||||
}
|
||||
|
||||
_animate = () => { // to avoid havind to bind(this) in requestAnimationFrame, because one bound fn per frame = continuous GC load
|
||||
if(!this.animation) return
|
||||
_animate = () => { // to avoid having to bind(this) in requestAnimationFrame, because one bound fn per frame = continuous GC load
|
||||
requestAnimationFrame(this._animate)
|
||||
this.currentAgentObj.rotation.x += 0.005
|
||||
this.currentAgentObj.rotation.y += 0.01
|
||||
if(this.currentAgentObj && this.animation){
|
||||
this.currentAgentObj.rotation.x += 0.005
|
||||
this.currentAgentObj.rotation.y += 0.01
|
||||
}
|
||||
this.renderer.render(this.scene, this.camera)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user