Problem with walls

I’ve got problems to make a game level,i made a cube and after i attach a rigdbody in it but when i do this the player pushes the cube and when i delete the rigdbody and the cube have only a mesh/box colider,it crosses the player.Sorry for my bad English.Here’s a dmeo to see better:
http://dl.dropbox.com/u/15437178/WebPlayer/WebPlayer.html

Know someone it?

I think turning off “use gravity” will do the job. You can find the checkbox under the Rigidbody function.

If you are just trying to make a wall in your game, all you would need is to create a box. Stretch the box so it looks like a wall for example: X = 100 Y= 10 Z = 2. Once this is done, then just apply a box collider to it and then you will not be able to go through the wall.

Yeah guys,i think this at first but don’t works:(

Is the problem with my code?

/*That script controls the tank moviment*/

var speed=10;
var  rotateSpeed:int=50;
function Update () 
{
transform.Rotate(0, Input.GetAxis("Horizontal") * rotateSpeed * Time.deltaTime, 0);
    var y = 0;
    var z = Input.GetAxis("Vertical") * speed * Time.deltaTime;
    transform.Translate(0 , y, z );
}

the AI enemy don’t crosses the wall

know someone that problem?

up