Place object on click on terrain generated by Elevation class?

Software: Away3D 4.x

Rajneesh, Jr. Member
Posted: 25 June 2014 06:28 AM   Total Posts: 34

Hi, I am using MouseEvent3D to place 3d object on terrain created with Elevation class. 3DObject is placed but not beneath the mouse position.

Help please if anything wrong here?

private function placeObject(e:MouseEvent3D):void
      {
 zPos 
terrain.getHeightAt(view.mouseXview.mouseY);
 
mesh.position = new Vector3D(view.mouseXview.mouseYzPos);
      

Thanks.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X