Explorar o código

added setDirection up parameter

Nicolas Cannasse hai 1 ano
pai
achega
aebb824720
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      h3d/scene/Object.hx

+ 2 - 2
h3d/scene/Object.hx

@@ -917,8 +917,8 @@ class Object {
 	/**
 	/**
 		Set the rotation using the specified look at direction
 		Set the rotation using the specified look at direction
 	**/
 	**/
-	public function setDirection( v : h3d.Vector ) {
-		qRot.initDirection(v);
+	public function setDirection( v : h3d.Vector, ?up ) {
+		qRot.initDirection(v, up);
 		posChanged = true;
 		posChanged = true;
 	}
 	}