grid-sensor
grid-sensor copied to clipboard
Spaceship normalized observations
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?
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.