Explorar o código

Merge branch 'master' of https://github.com/vonWolfehaus/three.js into dev

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
6f85b742e5
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      src/math/Vector3.js

+ 10 - 0
src/math/Vector3.js

@@ -142,6 +142,16 @@ THREE.Vector3.prototype = {
 		return this;
 
 	},
+	
+	subScalar: function ( s ) {
+
+		this.x -= s;
+		this.y -= s;
+		this.z -= s;
+
+		return this;
+
+	},
 
 	subVectors: function ( a, b ) {