Hi Guys, I am really new to Unity but need to finish a final year project on this topic. I am trying to use reinforcement learning to let an agent learn how to perform a backhand. A backhand is defined as
hand_r2
having a y-rotation between 240-300 degrees. Only HumanRight
has Rigidbody.
I want to define the reward and penalty when hand_r2 has the angles. The reward and penalty is defined in a Env_Control
script. So far, I know how to reference HumanRight
from the Env_Control
script. But how do I assess the y-rotation of hand_r2
to give appropriate rewards and penalties?