# Static objects in 3D space move on ground

**URL:** <https://forum.kirupa.com/t/static-objects-in-3d-space-move-on-ground/321853>\
**Category:** Uncategorized\
**Created:** [May 3, 2011, 1:17pm UTC](https://forum.kirupa.com/t/static-objects-in-3d-space-move-on-ground/321853 "2011-05-03T13:17:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jagguy](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@jagguy](https://forum.kirupa.com/u/jagguy)\
**Post date:** [May 3, 2011, 1:17pm UTC](https://forum.kirupa.com/t/static-objects-in-3d-space-move-on-ground/321853/1 "2011-05-03T13:17:29Z")

</div>

I am using away3D and I have come across a stumbling block I cant get anyone to answer. I have tried EVERYTHING and I am not getting an answer on away3D forums.  
.  
I place objects in 3D space. where the houses start at different y -value and z -value for reasons I dont know so they can look level.

[FONT=Courier, Monospaced]IT takes about 30 sec to load but here is my example of the problem . The objects move on the ground when they should not. I am just moving the camera. I dont underatnd how you place objects in 3D space in away3D.  
[/FONT]

[FONT=Courier, Monospaced][http://www.mymrt.net/MyPlane/myload2.html](http://www.google.com/url?sa=D&q=http://www.mymrt.net/MyPlane/myload2.html)  
[/FONT]

[FONT=Courier, Monospaced]Here is the issue with my program after MANY hours of endless  
fiddling.  
[/FONT]  
[FONT=Courier, Monospaced]The y value of the plane. It looks the same with value at -100 or -140 but it works at -140 where it is under all ojects. AT -100 it looks under all objects but doesnt move properly. Objects and the plane (ground) dont seem fixed.  
[/FONT]

[FONT=Courier, Monospaced]  
[/FONT]

[FONT=Courier, Monospaced]// plane = new Plane({material:mygrass, name:“plane”, z: 200,y:-100,x:-100, width:1000, height:1000, pushback:true});  
plane = new Plane({material:mygrass, name:“plane”, z: 200,y:-140,x:-100, width:1000, height:1000, pushback:true});[/FONT]

//load camera

camera = new Camera3D();  
camera.x=100;  
camera.z=-500;  
camera.focus=30;  
camera.zoom=20;

```
        view = new View3D({scene:scene, camera:camera});
        
        // center the viewport to the middle of the stage
        view.x = stage.stageWidth / 2;
        view.y = stage.stageHeight / 2;
        
        addChild(view);

```

//move camera

```
if (dict[Keyboard.RIGHT]==true) {
            camera.moveRight(10); 
            
        }
```
