r3-custom-code/rlley2ki2i.js

15 lines
245 B
JavaScript
Raw Normal View History

if (!this.entityLoaded) {
return;
}
if (!this.initialized) {
this.road = this.entityLoaded.road;
this.initialized = true;
}
this.road.rotation.z += 0.004 * data.delta;
this.road.updateInstance('rotation');
//@ sourceURL=beforeRender.js