I have a Plane and I try tweening a MovieClipSprite on it. I run into trouble when I try to tween near the points where both segment triangles meet (I have kept both segments as 1), While moving near these points the Sprite disappears.
I can tell it goes beneath the Plane because when it reappears it does so gradually and I can see it’s lower half appearing as it moves away from these points.
Increasing the segments obviously deteriorates the performance further as this begins to happen at other points as well.
I am pasting some relevant code, if that may help
var planeMaterial:BitmapMaterial = new BitmapMaterial(texture.bitmapData, {smooth: true, precision: 4});
plane = new Plane({material: planeMaterial,
height: SIDE_LENGTH,
width: SIDE_LENGTH,
x: 0,
y: 0,
z: 0,
segmentsH: 1,
segmentsW: 1,
bothsides: false,
yUp: true
});
addChild(plane);
I tried clipping, Rectangle and Frustum but that doesn’t help either.