Skip to content

Commit

Permalink
fix deleted observations (#4366)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Elion authored Aug 17, 2020
1 parent 262490e commit 5d2d65e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ public override void Initialize()
public override void CollectObservations(VectorSensor sensor)
{
sensor.AddObservation(gameObject.transform.rotation.z);
sensor.AddObservation(gameObject.transform.rotation.x);
sensor.AddObservation(ball.transform.position - gameObject.transform.position);
sensor.AddObservation(m_BallRb.velocity);
}

public override void OnActionReceived(ActionBuffers actionBuffers)
{
var actionZ = 2f * Mathf.Clamp(actionBuffers.ContinuousActions[0], -1f, 1f);
Expand Down

0 comments on commit 5d2d65e

Please sign in to comment.