Open inxomnyaa opened 3 years ago
How would I rotate the player using the animate packet?
Like literally how i wrote it.
The code you sent only allows to me lay in one direction, which makes sense since I don't specify any rotations in the packet.
Iirc that depends on the player's rotation
I've tested it yesterday and I think always lay in the same direction, no matter where I was looking when starting the animation.
By using the bed sleeping mechanic, you can not rotate the model, and sometimes it gets offset.
I suggest using the AnimateEntityPacket with the "sleeping" animation