Commit 4c2fd71a authored by Christian Winter's avatar Christian Winter

selection now working in rotated and / or scaled state

parent c22ce48c
Pipeline #4765794 passed with stage
in 56 seconds
......@@ -40,6 +40,11 @@ class PrefabInstance {
for (let line of this.reference.lines) {
// prepare line
line = line.copy().move(this.transform.position);
line.start.position = line.start.position.scaleFrom(this.transform.position, this.transform.scale);
line.start.position = line.start.position.rotateAround(this.transform.position, this.transform.rotation);
line.end.position = line.end.position.scaleFrom(this.transform.position, this.transform.scale);
line.end.position = line.end.position.rotateAround(this.transform.position, this.transform.rotation);
// check for hit
if (Utilities.distancePointToLine(mousePosition, line) <= cursorRange)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment