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.mouseX, view.mouseY);
mesh.position = new Vector3D(view.mouseX, view.mouseY, zPos);
}
Thanks.