Hello, hopefully this question is appropriate for this forum.

I'm making an openGL (ES) based application. I need my user to be able to parent an object while keeping its current worldspace loc/rot/scl

I can do it by inversing the parent mat and multiplying it by the child mat, but this only seems to works when scale = 1. When scale is applied to my objects the result doesn't work (i.e my child moves or skews after parenting)?

Any help would be great, thanks.