- Home /
Walking on walls JS
Hi everyone, usually I doesnt 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.
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.
Answer by Muzz 1 · Mar 19, 2011 at 07:40 PM
How about rotating the whole level by 90 (or whatever)? That might work. Try looking at the manual for rotation scripts.
Answer by Sadakos Boyfriend · Apr 19, 2011 at 01:48 PM
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 :)
Your answer
![](https://koobas.hobune.stream/wayback/20220613113723im_/https://answers.unity.com/themes/thub/images/avi.jpg)