• Content Count

  • Joined

  • Last visited

  1. Hello, I have two spheres as characters, and I want to know if I can show any arrow maybe for indicating the direction, since normally I can not define any direction on the sphere for users to view. I will initialize the first direction, and want to change every round by moves. These markers will be only used as showing directions and will be located the y=10 above of spheres. Can I do that, or can I do some kind of visualization for the above problem ?
  2. thanks for reply I will try your suggestions
  3. Hello, I have an image which I created bits by bits with hand includes only black and white areas to use in heightmap creation. Also, I have two spheres named as cat and rat. When I disabled the physics the spawn for cat and rat is correct, but when I have enabled with HeightmapImpostor and SphereImpostor, cat is correctly spawned but rat is not the coordinate what I want. You can think of heightmap as a maze only. I want to use its walls only to handle collisions. I did try normal plane and heightmap with different y coordinates, but it did not work. I think only problem is the Impostors. Because I did try Plane and spheres and their impostors without heightmap and it worked. What can I do to create the maze which I want it for only its walls, so I can construct plane + walls + spheres, and no sphere spawn error. Note: I have chosen heightmap because it is simple, with blocks(cupes) walls can be created, but I could not place the cubes on the plane. If you explain how to read from image and understand the color, and how to use plane to place the cubes or not, I believe I can create walls. I have tried canvas and image, but only value I can get is 0,0,0,0 which is nonsense by the way because there are other colors in the image Forgot to mention I have tried to change ellipsoid and ellipsoidOffset, believing maybe work but they did not I am using CannonJS, you can suggest another for above mentioned problem to solve
  4. Thank you for suggestions Wingnut. I guess I should look playground examples P.S. We are using FollowCamera, and it is looking to the ground object all the time, so all moves can be seen on the screen. I did consider that one time we can change the lock to the cat or rat when they move, and after go back to ground. Maybe we should do that
  5. Thank you for comment Wingnut. I know it is a very difficult job to done, but it will be used in a competition and there will be no time for competitors for looking at the map or the screen we will use to show the moves. Basically, competitors must explore the map and while doing that may be the cat catches the rat. If I understand you correctly, we are not using camera as movers, so the angle of view for showing moves is like an overhead view. I do not have sufficient knowledge, but rays can be useful There will be boundaries for the map, so it should collide somewhere Any other ideas?
  6. Hello, I am working on a catch and run game, and I have cat and rat meshes along with a height map that creates walls for me. I have the locations of rat and cat, also my objective is using websocket to play this game, so I should know information about locations. Simply, I want to send some information to the users so, they can decide which way to go. In Gazebo simulation program, LaserScan that has distance array to the obstacles with decided view of angle such as pi radian is used for deciding which way to go with no knowledge of the world. How can I achieve this goal? How can I get the distances to obstacles which provided with some decided angle of view. I want to do this in that way, because any indexing can be wrong for some situations like roundoff errors may occur, but any suggestions is welcomed. Please consider the fact that I will send this information to users, and wait them to understand quickly.