Untitled

mail@pastecode.io avatar
unknown
typescript
a month ago
354 B
5
Indexable
Never


	// anime le long d'un rayon
		if (this.iteratorBullet != -1) {
          this.iteratorBullet=0.1;
          var pos = new Vector3();
          this.raycaster.ray.at(this.iteratorBullet,pos);
          var tra = this.raycaster.ray.direction.clone();
          tra.multiplyScalar(this.iteratorBullet);
          this.bullet.position.add(tra);
        }
Leave a Comment