Fix error after refactor, added comments

This commit is contained in:
Jack Ha 2017-04-04 09:52:07 +02:00
parent 1ebf947ff2
commit 1df9066340
3 changed files with 12 additions and 7 deletions

View file

@ -31,10 +31,9 @@ class ShapeArray:
arr = cls.arrayFromPolygon(shape, flip_vertices)
return cls(arr, offset_x, offset_y)
## Return an offset and hull ShapeArray from a scenenode.
## Return an offset and hull ShapeArray from a scene node.
@classmethod
def fromNode(cls, node, min_offset, scale = 0.5):
# hacky way to undo transformation
transform = node._transformation
transform_x = transform._data[0][3]
transform_y = transform._data[2][3]