Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello, I am trying to create a sliding behavior for my fps game. I have figured out most of the actual movement, but there is no feedback for the player. (You just move fast in your facing direction.) How would I lower the camera to show that you are sliding? Thank you. |
||||
|
The FPS controller example I had you download from Sven's page has another JS file with it that switches from one camera to another. You could use that to show the player sliding on the floor. The default FPS camera won't work so both cameras need to have custom controllers on them and obviously one of the cameras needs to be closer to the floor, etc. |
||||
|
I noticed that. However, the problem is the fact that I can't seem to move the camera's together as one unit. Any ideas? |
||||
|
Doesn't Sven's script do that for you? It's been some time since I looked at it. You don't have to parent the cameras together for them to work. One camera can off in space or under the level etc. The code is supposed to mirror the properties of the camera so when you switch cameras the other camera's position, rotation, target, etc is the same as the previous camera. It's like teleporting. |
||||
|
|