Relative Content

Tag Archive for c#unity-game-engine3d

I’m trying to make A * pathfinding algorithm however I’m stuck as it doesn’t work as expected gets stuck on walls and so on I don’t know what’s wrong

I tried to filter unsearched but the same nodes keep on being add and keeps on going back to the same positions
I expect it to find the correct path to the target
but the enemy just gets stuck on a wall
also the input is just for testing purposes as I wanted to use a while but it would get stuck in infinite loops as well as the start position when the path is not found

I’m trying to make A * pathfinding algorithm however I’m stuck as it doesn’t work as expected gets stuck on walls and so on I don’t know what’s wrong

I tried to filter unsearched but the same nodes keep on being add and keeps on going back to the same positions
I expect it to find the correct path to the target
but the enemy just gets stuck on a wall
also the input is just for testing purposes as I wanted to use a while but it would get stuck in infinite loops as well as the start position when the path is not found

porque mi codigo de movimiento transform.forward no funciona bien?

estoy programando un juego de tanques en unity, y estoy tratando de hacer que el tanque se mueva en la direccion en la que esta apuntando la flecha azul (adelante) pero al final se termina moviendo de una manera extraña, si giro el tanque hacia la derecha, y le doy hacia adelante, se va hacia atras, y asi pasan muchas cosas raras, no se mueve hacia adelante sino hacia una direccion que ni yo entiendo, mi codigo:

(unity)i can’t make the camera move around a 3d sphere player while it follows it

I’m creating a 3d game in unity , where basically the player is a sphere ,the problem is that I can’t find the solution to make the camera follow the player and whenever I press a certain buttons such as (k,l) the camera will move around the player, however , everything works smoothly separately ,but when i try to put them both(the rotating and the following ) either only the following works or the camera is not moveing but can be rotatable .
I don’t have a certain code to put here,as i tried many and nothing worked , so please help