2018-03-07 14:03:56 +01:00
|
|
|
if (!this.entityLoaded) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!this.initialized) {
|
|
|
|
|
|
|
|
this.road = this.entityLoaded.road;
|
|
|
|
|
|
|
|
this.initialized = true;
|
|
|
|
}
|
|
|
|
|
2018-03-07 14:18:01 +01:00
|
|
|
this.road.rotation.z += 0.004 * data.delta;
|
2018-03-07 14:03:56 +01:00
|
|
|
this.road.updateInstance('rotation');
|
|
|
|
|
|
|
|
//@ sourceURL=beforeRender.js
|