pmndrs / ecctrl

🕹️ A floating rigibody character controller
MIT License
465 stars 49 forks source link

How to set the rotation of character? #76

Open metaverse1112 opened 2 weeks ago

ErdongChen-Andrew commented 2 weeks ago

You can set characterInitDir. It's in rad

metaverse1112 commented 2 weeks ago

Thanks for your reply. But, I need to set the rotation of character while playing the character no init direction.

ErdongChen-Andrew commented 2 weeks ago

You want to rotate the character while playing? I don't quite understand.

metaverse1112 commented 2 weeks ago

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.

ErdongChen-Andrew commented 2 weeks ago

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