xbpeng / DeepMimic

Motion imitation with deep reinforcement learning.
https://xbpeng.github.io/projects/DeepMimic/index.html
MIT License
2.27k stars 485 forks source link

Camera Following #184

Open cgeshan opened 1 year ago

cgeshan commented 1 year ago

Not necessarily an issue, and thank you for the great work.

I was wondering if there was a way to disable the camera following. I would like to zoom out and rotate then have the character move around the screen. Instead of the character remaining centered.

Thanks

xbpeng commented 1 year ago

you can modify the camera's behavior using "UpdateCamera()": https://github.com/xbpeng/DeepMimic/blob/70e7c6b22b775bb9342d4e15e6ef0bd91a55c6c0/DeepMimicCore/scenes/DrawSceneSimChar.cpp#L62