Skip to content

Instantly share code, notes, and snippets.

View ZiadJ's full-sized avatar

Ziad Jeeroburkhan ZiadJ

View GitHub Profile
@ArztSamuel
ArztSamuel / ParkingCarAgent.cs
Last active November 13, 2024 06:14
Most important parts of the Agent code used for the project of https://youtu.be/VMp6pq6_QjI
public class ParkingCarAgent : Agent
{
[SerializeField]
private Transform TargetParkingSpot;
[SerializeField]
// = Reward every 'interval' units getting closer
private float DistanceRewardInterval = 3f;
// Thresholds defining when the task is complete