I use the Away3D distanceTo() function. If the distance to the camera is less than a certain amount, and the door is closed, open it. If the distance to the camera is greater than a certain amount, and the door is open, close it.
On Oct 29, 7:27 am, le_unam <[email protected]> wrote: > okay thank you ... how did you solve the opening door-issue? in my > project i used mouseevent3d for opening doors but since 3.6 it doesnt > work anymore. your doors open automatically when colliding right? is > there a function like "oncollision" for this or how did you do this? > didnt find anything in your example codes. > > On 28 Okt., 19:18, John Wilson <[email protected]> > wrote: > > > > > Hi le_unam, > > > The "description of the process" link > > athttp://john-wilson.110mb.com/in_the_city.html > > describes how I modelled the the scene. I am not using any bulk > > loader, I'm just using the CentralMaterialLibrary. > > > Regards, > > > John Wilson > > > On Oct 28, 10:10 am, le_unam <[email protected]> wrote: > > > > hey john .... wow its looking amazing. for this the load is very fast. > > > how big are your images? how did you model your scene and how did you > > > texture it? really great job. > > > > i created a building with about 12 rooms and my textures arent looking > > > as good as yours and the load is much longer than yours ... where is > > > the trick. > > > > i used bulkloader, too. what abaout you? > > > > greetz manu > > > > On 24 Okt., 13:47, John Wilson <[email protected]> > > > wrote: > > > > > Hi MG, > > > > > Yes, I read your post about usingMouseEvent3Dand you seem to be > > > > right. I have also found that3.6.0 causes problems when one tries > > > > to rotate a cube added to the BSP Tree at runtime (in my case to open > > > > a door). Two steps forward one step back, I suppose. Still, I think > > > > the BSP/PVS classes are so extraordinary that I can live with the odd > > > > glitch, and with luck they will be resolved before long. > > > > > Regards, > > > > > John Wilson > > > > > On Oct 24, 11:50 am, macgor <[email protected]> wrote: > > > > > > Sorry I didn't check this mysealf.. but in few days I will, cause also > > > > > need that. > > > > > I will post the solution when I find. > > > > > btw. have You > > > > > readhttp://groups.google.com/group/away3d-dev/t/df170fee95580fb0 > > > > > ?? > > > > > > MG- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text -
