drawArrow2d? Help!

Hi Guys,

I need to construction a directional 2d arrow.

I found: panda3d.org/reference/1.8.1 … 3495f5aa11

But I have no idea how to get it going.

So far…

nodePath = direct.directtools.DirectGeometry.LineNodePath()
nodePath.drawArrow2d((0, 0, 0), (100, 0, 0),1,1)
is …
v = sv - ev
TypeError: unsupported operand type(s) for -: ‘tuple’ and ‘tuple’

Can someone help? Thanks!

nodePath = direct.directtools.DirectGeometry.LineNodePath()
nodePath.reparentTo(render2d)
nodePath.drawArrow2d(Vec3(0, 0, 0), Vec3(0.5, 0, 0.5), 30, 0.1)
nodePath.create()

Thank you so much!