Chaining three CATtansform3D in Swift

208 Views Asked by At

Is it possible to chaining three CAtransform3D (rotate, scale, translate) in Swift?

I'm using CATransform3DConcat but it's only chaining 2 transforms

If yes, how i can do it? If no, is there any "cheats" to do it?

Thank you

1

There are 1 best solutions below

0
return true On BEST ANSWER

Assuming your transforms are called t1, t2 and t3. Then do this:

let t = CATransform3DConcat(t1, CATransform3DConcat(t2, t3))