truncated cone
Posted: Fri Mar 25, 2016 6:22 pm
Hi,
can anybody help me, how to construct a truncated cone shape?
My idea is to use a CylinderShape inside of a TransformableShape.
So when I 'distort' a cylinder by shinking its top, it becomes like a truncated cone (and I figure this way I can create many cool convex shapes).
I know that its possible, since the camera projection matrix does something similar (a kind of not affine transformation).
But the TransformableShape takes a 3x3 matrix.
So hmm, and then which matrix cell do I need to set?
can anybody help me, how to construct a truncated cone shape?
My idea is to use a CylinderShape inside of a TransformableShape.
So when I 'distort' a cylinder by shinking its top, it becomes like a truncated cone (and I figure this way I can create many cool convex shapes).
I know that its possible, since the camera projection matrix does something similar (a kind of not affine transformation).
But the TransformableShape takes a 3x3 matrix.
So hmm, and then which matrix cell do I need to set?