I wonder how to rotate given entity around custom world point (not around its origin)? AFAIK there is no specific engine function/method that solves this problem. Does anyone have some code snippet for this?
I know it’s possible using pc.Mat4, but don’t know any details of how that could be done.
I would have thought you could use the pc.Mat4.transformPoint method. Set the rotation values and worldpoint in the matrix and transform the local offset position (probably along -Z)