grid-sensor icon indicating copy to clipboard operation
grid-sensor copied to clipboard

Spaceship normalized observations

Open Ademord opened this issue 4 years ago • 1 comments

Hello, Could you help me understand what are you doing here in the Spaceship.cs?

 NormPosition = Mathf.Clamp01(sqrMag / m_BrakeThreshRadiusSqr) * 2 - 1;
NormOrientation = Vector3.Angle(normal, fwd) / 90f - 1;

I am trying to understand how to normalize my position and orientation following your example.

Question 2: what is the point of normalizing positions and orientations?

Ademord avatar Jun 28 '21 18:06 Ademord

The agent needs to know how far it is from the asteroid field's center and what its orientation is in relation to a normal going from the center through the spaceships position. I'm normalizing both values to -1/+1 for vector observations.

mbaske avatar Jun 29 '21 15:06 mbaske