El lunes, 18 de julio de 2016, 11:45:22 (UTC+2), Christopher Crouzet
escribió:
>
> You don't need to convert both MPoint instances to MVector before
> subtracting them. As per the documentation page for MPoint (check the
> `operator-(MPoint)` method), if you subtract two MPoint objects you get
You don't need to convert both MPoint instances to MVector before
subtracting them. As per the documentation page for MPoint
(check the `operator-(MPoint)` method), if you subtract two MPoint objects
you get a MVector as a result:
vectorBetween = pointB - pointA
Not sure why you'd want to avoid
hello,
I want to get the vector between two objects, so what I do is create pointA
and pointB as instances MPoints, and then
vectorA = OpenMaya.MVector(pointA); vectorB = OpenMaya.MVector(pointB)
vectorBetween = vectorB - vectorA
Out of curiosity,I was wondering if you can directly get the vecto