Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - gamenewer

#166
Object should build before get the position, now  i  can get the waypoint , I wan't to use camera "walk" along the way by way point ,
like this:
Camera cam = world.getCamera();

SimpleVector p = waypoint[WayID];

   p.y -= 20;
   p.z -= 100;
cam.setPosition(p);

but is  seems mistake , could you help me to modify the code, thank s a lot
#167
HI, I use this mthod ,but i can't get the postion of waypoint , they are all (0,0,0) , Help me ,please

thank you !!
#168
Thank  you Very Much !  If  got  all the waypoints ,   I will get the line for car  to transform , so car can run in AI  mode,  Is't it ?
(sorry for my poor english)
#169
Thanks, If I add waypoint in 3d mode, How can  I search the  "waypoint_1" by jpct-ae?   I use code like this:

            try
            {
            saidao =Object3D.mergeAll(Loader.loadOBJ(res.getAssets().open("road.obj"),null,0.8f));//
            }
            catch (IOException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
               
            }
            TextureManager.getInstance().addTexture("road", new Texture(res.openRawResource(R.raw.road)));
            saidao.setTexture("road");
            
            saidao.translate(0,10,0);
            saidao.build();
            world.addObject(saidao);


Could you give me some refrece code ? Thank you
#170
Thanks, I add the 3d map into the world ,  I can't control the  car location on the  map ,Do you have some good ideas?
(I'm a newer for jpct-ae,sorry)
#171
I want use jpct-ae as 3d engine to realize a car racing game , but i don't know how to use the 3D map , How can i get the  way point  for car to run ?  Could some one tell me or give me some refence code ?  thank s

[attachment deleted by admin]