Walking on walls JS

Hi everyone, usually I doesn`t post at forums etc, but I stuck with problem and still can`t find solution. I have read relevant threads at UnityAnswers, at forum, but nothing seems to work.

I have a scene with a hollow parallelepiped and a prefab with 3rd person controller. The challange is to make player prefab able to change walking plane from "floor" to "wall" if he close enought to angle between, like a roach, for example.

alt text

It is important, camera must rotate accordingly, so we can see "back" of the player model. Another nuance: there are another rigid bodies in the scene, affected by gravity, so I would not want to rotate all scene.

So, I decide to use trigger collider, but nothing seems to work.

Could you show me an example of code, if it possible, with comments, so I can better understand Unity architecture? Due to my low level of JavaScript it is easy to me become confused what to whom to assign.

2 Answers

2

How about rotating the whole level by 90 (or whatever)? That might work. Try looking at the manual for rotation scripts.

Im having a similar problem, and found this: http://answers.unity3d.com/questions/21195/walking-on-walls

I'm looking in to it now, maybe it can help you too.

Just a suggestion :)