Scaling an object along the y-axis using Haxe

Hie there, I would like to know how can I scale an object along the Y-axis using Haxe code. I tried object.transform.scale( axis, float value) just as we do in rotating but I failed to scale. Please show me the single line of code I can add using Haxe Code.

Hi, @ArmoredDP

You might need to call object.transform.buildMatrix(); after scaling. Please try that.

Best,
QC

3 Likes

Unbelievable, I was forgetting to call buildMatrix() after scaling. Thanks @QuantumCoderQC. Thank you very much, its now scaling properly.