Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1036

DzLine3 object

$
0
0

OK this is driving me a bit nuts at the moment (and probably because I'm missing something very fundamental). I can't use any methods on a DzLine3 object, I just get the "undefined is not a function errors...
 

(function(){

	var oLine = new DzLine3();
	oLine.origin = new DzVec3( 0,0,0 );
	oLine.end = new DzVec3( 1,1,1 );
	
	var nLength = oLine.length();
	print(nLength);
	
})();

always results in the follwoing output
 

Executing Script...
Script Error: Line 7
TypeError: Result of expression 'oLine.length' [undefined] is not a function.
Stack Trace: ()@:7
Error executing script on line: 7
Script executed in 0 secs 2 msecs.

What am I missing?


Viewing all articles
Browse latest Browse all 1036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>