hello,
looks like a silly question,
but simply setting the y-value to zero,
for a projection on the xz plane,
has terrible side effects.
blok = box ( pos = ( 5,4,6))
print blok.pos
a = blok.pos
a.y = 0
print blok.pos
gives me:
<5, 4, 6>
<5, 0, 6>
help the blok is moved !
inserting copy or deepcopy
import copy
a = copy.copy ( blok.pos )
gives me
ArgumentError: Python argument types in
None.None(Vector, int)
did not match C++ signature:
None(visual::shared_vector {lvalue}, d)
I can hardly believe that it has to be done in this way:
a = vector ( blok.pos.x, 0, blok.pos.z )
thanks,
Stef
|