What’s the meaning to add camera into a mesh?!

Software: Away3D 4.x

LuoYang, Newbie
Posted: 28 August 2012 10:51 AM   Total Posts: 5

What’s the meaning to add camera into a mesh:

myMesh.addChild(view.camera);


thanks.

   

Richard Olsson, Administrator
Posted: 28 August 2012 11:42 AM   Total Posts: 1192   [ # 1 ]

The camera is a scene object like any other (including meshes) meaning that it works like any other object in terms of transformation. This means that if you want to have a camera follow an object, or always be somewhere in relation to an object, you can add it as a child of that object. This means that it will inherit it’s transformation the same way that any other child object does.

So, do this when you want to have the camera always be right behind an object, or any other similar case.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X