ppo-SnowballTarget / Project /Assets /ML-Agents /Examples /PushBlockWithInput /Scripts /PushBlockWithInputSettings.cs
Download Project/Assets/ML-Agents/Examples/PushBlockWithInput/Scripts/PushBlockWithInputSettings.cs from ashish2244/ppo-SnowballTarget: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/ashish2244/ppo-SnowballTarget/resolve/main/Project/Assets/ML-Agents/Examples/PushBlockWithInput/Scripts/PushBlockWithInputSettings.cs
- Command line
-
hf download hf://ashish2244/ppo-SnowballTarget/Project/Assets/ML-Agents/Examples/PushBlockWithInput/Scripts/PushBlockWithInputSettings.cs
-
curl -L -o PushBlockWithInputSettings.cs https://huggingface.co/ashish2244/ppo-SnowballTarget/resolve/main/Project/Assets/ML-Agents/Examples/PushBlockWithInput/Scripts/PushBlockWithInputSettings.cs
1.08 kB
| using UnityEngine; | |
| public class PushBlockWithInputSettings : MonoBehaviour | |
| { | |
| /// <summary> | |
| /// The "walking speed" of the agents in the scene. | |
| /// </summary> | |
| public float agentRunSpeed; | |
| /// <summary> | |
| /// The agent rotation speed. | |
| /// Every agent will use this setting. | |
| /// </summary> | |
| public float agentRotationSpeed; | |
| public float agentJumpForce; | |
| public float agentJumpCoolDown; | |
| /// <summary> | |
| /// The spawn area margin multiplier. | |
| /// ex: .9 means 90% of spawn area will be used. | |
| /// .1 margin will be left (so players don't spawn off of the edge). | |
| /// The higher this value, the longer training time required. | |
| /// </summary> | |
| public float spawnAreaMarginMultiplier; | |
| /// <summary> | |
| /// When a goal is scored the ground will switch to this | |
| /// material for a few seconds. | |
| /// </summary> | |
| public Material goalScoredMaterial; | |
| /// <summary> | |
| /// When an agent fails, the ground will turn this material for a few seconds. | |
| /// </summary> | |
| public Material failMaterial; | |
| } | |