浏览代码

more cleanup

/active-variablespeed
HH 4 年前
当前提交
1f6533c7
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 1
      Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/OrientationCubeController.cs
  2. 5
      Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/RandomTorqueEveryXSec.cs

1
Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/OrientationCubeController.cs


//UPDATE ORIENTATION CUBE POS & ROT
transform.SetPositionAndRotation(rootBP.position, lookRot);
}
public void UpdateOrientation(Vector3 pos, Vector3 dirVector)
{
// var dirVector = target.position - transform.position;

5
Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/RandomTorqueEveryXSec.cs


public class RandomTorqueEveryXSec : MonoBehaviour
{
// Start is called before the first frame update
void OnEnable()
{

torqueToUse = new Vector3(Random.Range(-maxTorque.x, maxTorque.x), Random.Range(-maxTorque.y, maxTorque.y),
Random.Range(-maxTorque.z, maxTorque.z));
}
// Update is called once per frame
void FixedUpdate()
{

正在加载...
取消
保存