Away3D 3.6 Drag3D drag only x

Software: Away3D 3.x

Vovan, Newbie
Posted: 17 December 2011 07:44 PM   Total Posts: 2

When in Drag3D, drag object only from object.x=0 to object.x=100?

   

Avatar
Fabrice Closier, Administrator
Posted: 17 December 2011 11:00 PM   Total Posts: 1265   [ # 1 ]

its a mouse projection, say a ray from the camera going through the mouse coordinate till it hits the x,y plane (assuming you have set the xy plane). so depending on the distance camera to plane, the hit will have a different maximum. Assuming again here that this gives you the max 100 at a given distance. If you move the camera away from the plane, the “maximum” will “grow” too. If you set the plane to the object position, you can also have this min and max offsets calculated from the object itself. default being the world 0,0,0.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X