- Code: Select all
eng1n1refLine.setScale(4*getprop("controls/engines/engine/throttle"),1);
setScale() scales from the origin of the canvas instead of the object's center (or origin). This results in a red area moving up/down over the entire canvas. I've tried running .setCenter() on the object, but that has no effect. What did I miss?
Cheers,
Gijs