Strategy camera

Software: Away3D 4.x

izharkov, Newbie
Posted: 19 May 2013 02:48 PM   Total Posts: 1

Hello!

How to make strategy camera in Away3D like in this video? Is there some examples? Can anyone help?

   

sargon, Member
Posted: 19 May 2013 08:31 PM   Total Posts: 51   [ # 1 ]

hmmm the best way I think is to use HoverControler on some unvisibility object.

var object:Object3d = new Object3d();
HoverControler.target object;

////// update position of object by wsad or arrows 
/////for exaple up,down = z, left,right = x, y = get hight of terrain or just make it const.

object.position = ???

///// to zoom camera use scroll and at every HoverControler distance change change tilt angle depending on distance

///feg:

HoverControler.tiltAngle = (HoverControler.distance/MaxDist)*90

hope this help a bit.

   

Rayen123, Member
Posted: 20 May 2013 09:40 PM   Total Posts: 70   [ # 2 ]

Hi,
just set camera rotationX for example 10 (append on which direction you have terrain), and then move only position.x, position.z ... and position.y is height of camera

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X