浏览代码

reset script to master

/hh-develop-loco-walker-variable-speed
HH 4 年前
当前提交
f7716bb0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/OrientationCubeController.cs

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


/// </summary>
public class OrientationCubeController : MonoBehaviour
{
//Public method to allow Agent to set look rotation of this transform
//Update position and Rotation
dirVector.y = 0; //flatten dir on the y. this will only work on level surfaces
dirVector.y = 0; //flatten dir on the y. this will only work on level, uneven surfaces
var lookRot =
dirVector == Vector3.zero
? Quaternion.identity

正在加载...
取消
保存