|
|
|
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
public void Update() { |
|
|
|
Reset(); |
|
|
|
|
|
|
|
// foreach (Bullet b in bullets)
|
|
|
|
// {
|
|
|
|
// b.transform.localScale = 0.5f * new Vector3(1,1,1);
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach (Bullet b in bullets) |
|
|
|
{ |
|
|
|
|
|
|
m_ObservationBuffer[m_CurrentNumObservables * m_ObservableSize + 2] = b.transform.forward.x; |
|
|
|
m_ObservationBuffer[m_CurrentNumObservables * m_ObservableSize + 3] = b.transform.forward.z; |
|
|
|
m_CurrentNumObservables += 1; |
|
|
|
// b.transform.localScale = 1f* new Vector3(1,1,1);
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|