Sunday, 25 January 2015

Proceeding with the game environment - Ahmed Bhutta

After building the environment which I had help from Hamza in completing, we needed to make the walls of the tunnel and the floor solid so that our characters could walk on them and whilst playing the game, you wouldn't fall through.

I had attempted to apply a mesh collider to the tunnels that we had snapped together to build the environment but unfortunately due to an unknown reason, that wouldn't work. Instead I went through the process of adding cubes the edges of the tunnel walls and unticking the mesh renderer box so that they would be invisible. The cubes had box colliders applied to them which therefore stimulated solid walls. I had done the same for the platform floor within the tunnel.


I had added these box collider cubes all along until half of the game level. I found this to be a lengthy process and time consuming. Unfortunately this was the only way I was able to make solid walls and floors for our game.

I had, to begin with, added a terrain which had a train collider on it, but for some reason our character would fall straight through the floor whenever the game was in play mode. I had deleted this and replaced it with a cube that had a box collider on it and resized and placed it exactly where the player would walk.


No comments:

Post a Comment