https://github.com/Azaezel/Torque3D/commit/1b02efaebc56455fe6f3c80139a255800b772e84 equivalent