Welcome
At first sorry for my bad english!
I was rendered map (img) of the guy that moves from point A to B. The guy is a MovieClip 2D, because I do not know how to do animation legs. There is a special class converted to sprite3d and then added to the scene.
czlowieczek = new TimelineAnimation(czlowiek1);
spriteCzlowiek = new Sprite3D(czlowieczek.material,20,50);
spriteCzlowiek.x = 0;
spriteCzlowiek.y = 50;
spriteCzlowiek.z = -3000;
_view.scene.addChild(spriteCzlowiek);
And now my question: how do the camera followed the l people (third person camera) and smoothly curved the corners
Until the turn I can set the camera:
if (spriteCzlowiek.z < -550)
{
spriteCzlowiek.z += 10;
_view.camera.z = spriteCzlowiek.z - 300;
}
But, right?
I tried camera.rotationY but it does not go smoothly
Please help me