Can anyone show me a simple example of how we're supposed to display a
LineSegement? The following code seems like it should work but I get
an error when I try and add the _lineSegment to the _container.

1067: Implicit coercion of a value of type
away3d.primitives:LineSegment to an unrelated type
away3d.containers:ObjectContainer3D.

_lineSegment = new LineSegment( new Vector3D( 0, 0, 0 ), new
Vector3D( 100, 100, 100 ) );
_lineSegment.thickness = 10;
_lineSegment.endColor = 0xFF0000;
_lineSegment.startColor = 0x0000FF;
_container.addChild( _lineSegment ); // <- Error

Thanks in advance.

Note: there was a discussion on this topic on March 9th that mentioned
that it was being added and showed an example - no code though.

http://groups.google.com/group/away3d-dev/browse_thread/thread/cd4187b831046691/54bdb41abf6618c7?lnk=gst&q=LineSegment#54bdb41abf6618c7

Reply via email to