Learning rotation
OOP world » Devlog
Change rotation when seat on the coach/chair.
So, today I was learning how to make to seat a player and rotate him when it's near to seatable things. And in the "tech" words - how to rotate a player, which has a rotation via mouse, how to stop that and make the player face behind him. Every method was terrible. Trial and error methods, I decided to disable the control of the movement and rotation while he is sitting. Player can sit when pressing Q and leave with that exact same key. But here the problem occurs - while disabling sitting, player can interact with furniture, so it moves away. Should I save position of the player before sitting?
OOP world
Object oriented programming in the simulation
Status | Prototype |
Category | Other |
Author | annairda |
Genre | Educational, Simulation |
More posts
- Leave to growMar 17, 2023
- Changing thingsMar 06, 2023
- emotional Trap of developmentMar 06, 2023
Leave a comment
Log in with itch.io to leave a comment.