Forum Discussion
vtheyoshi
10 years agoHonored Guest
Movement control with leaning
Hi all, I need help modifying the Player Controller script. I would like to create a game in which you move around the world by leaning forward and backward, much like the game Shadows of Isolation...
vtheyoshi
10 years agoHonored Guest
I will update to Unity 5 now. (I've been waiting on my project manager to update our pro licence, but I don't need pro to solve this problem!)
Sorry my explanation wasn't clear. I would like to be able to move forward at a slow pace whenever I lean a tiny bit forward with more forward leaning resulting in a slightly faster speed, and to then be able to move backward at that same slow pace whenever I lean backward. Additionally, I would like to be able to move diagonally by leaning diagonally, or alternatively, turn in a swivel chair to change my heading and then move again by leaning forward.
Finally, I would like to be able to adjust my speed by pressing a button, such that holding it down I could gradually build up speed and move faster and faster, as long as I was leaning forward (though it's fine or possibly even better if I don't come to an immediate stop as soon as I sit up, especially if I've been going fast).
I hope that makes more sense!
EDIT: I was making it trigger only when holding down L because I was concerned that an accidental head movement might cause unwanted translation. I thought that holding down a key would be a nice way to keep the player still until you wanted to start moving, but I am not attached to this if it makes it more difficult to get lean-based movement.
Sorry my explanation wasn't clear. I would like to be able to move forward at a slow pace whenever I lean a tiny bit forward with more forward leaning resulting in a slightly faster speed, and to then be able to move backward at that same slow pace whenever I lean backward. Additionally, I would like to be able to move diagonally by leaning diagonally, or alternatively, turn in a swivel chair to change my heading and then move again by leaning forward.
Finally, I would like to be able to adjust my speed by pressing a button, such that holding it down I could gradually build up speed and move faster and faster, as long as I was leaning forward (though it's fine or possibly even better if I don't come to an immediate stop as soon as I sit up, especially if I've been going fast).
I hope that makes more sense!
EDIT: I was making it trigger only when holding down L because I was concerned that an accidental head movement might cause unwanted translation. I thought that holding down a key would be a nice way to keep the player still until you wanted to start moving, but I am not attached to this if it makes it more difficult to get lean-based movement.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 month ago
- 3 years ago
- 1 year ago
- 3 months ago