How to set the rotation of character?
You can set characterInitDir. It's in rad
Thanks for your reply. But, I need to set the rotation of character while playing the character no init direction.
You want to rotate the character while playing? I don't quite understand.
https://github.com/pmndrs/ecctrl/assets/145017971/c265dcfb-0b97-4811-a44c-68837ff0d24c
I would like to set the rotation while playing the character. Current, when sit down, my character keeps init direction.
I see. I think the best way is to rotate the character model when it sits down. You can give the model a ref to do the rotation
I can rotate the rigid body, is there no way to set the camera rotation without using input controls?
@DennisSmolek You can’t rotate the camera after initialization. I might add that feature later.
@DennisSmolek looks like it is already implemented in the last commit from @ErdongChen-Andrew .
You can check here: https://github.com/pmndrs/ecctrl/commit/8b35a75284d2eb29aae430aa7c4f26a17f788aab#diff-c4100983dec4e8385928688771faf11771f6882864edd910b2472b32f1c1b900R870
In short, use refs and rotateCamera or rotateCharacterOnY methods