Ver código fonte

added setDirection up parameter

Nicolas Cannasse 1 ano atrás
pai
commit
aebb824720
1 arquivos alterados com 2 adições e 2 exclusões
  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
 	**/
-	public function setDirection( v : h3d.Vector ) {
-		qRot.initDirection(v);
+	public function setDirection( v : h3d.Vector, ?up ) {
+		qRot.initDirection(v, up);
 		posChanged = true;
 	}