hi there, i want to develop a simple game,and the player can take a seat,(sofa,chair…),how can i do this? to make the player avatar take the seat correctly!! just make a simple animation?
thanks!
hi there, i want to develop a simple game,and the player can take a seat,(sofa,chair…),how can i do this? to make the player avatar take the seat correctly!! just make a simple animation?
thanks!
I’d just make an animation that lines up correctly with the furniture then toggle whether the avatar is sitting or not and if he is toggle the animation/sit sequence.
but if i want to take different seats?(chairs with different height?)
You’d need a different animation for each different chair height, obviously. Or you’d need to use IK or physics or scripting to do the sitting down animation procedurally - not quite impossible, but certainly not easy.
The sensible approach, though, would be to standardize the seating height of chairs in your game.