Vector * scalar not implemented? [SOLVED]

Hello there.
I expected vect_3D = 2*Vec3(1,2,3) to do => Vec3(2,4,6) but it is not :
TypeError: unsupported operand type(s) for *: ‘float’ and ‘panda3d.core.LVector3f’
is there a reason to that ?
since you can to vect_3D = vect_3D + vect_3D you should be able to do vect_3D = 2 * vect_3D, shouldn’t you ?
I hardly believe the subject hasn’t been raised but I couldn’t find any info.

OK , I get it :
Vec3(1,2,3) * 2 works
2 * Vec3(1,2,3) don’t
I bet many others had the same issue.

Hi, welcome to the forums!

I’ve filed a feature request for this in our issue tracker:

1 Like