浏览代码

replace crawler

/develop/cc-teammanager
HH 4 年前
当前提交
e7be9b6f
共有 4 个文件被更改,包括 1044 次插入980 次删除
  1. 999
      Project/Assets/ML-Agents/Examples/PushBlock/Prefabs/ZombiePushBlockCollabArea.prefab
  2. 980
      Project/Assets/ML-Agents/Examples/PushBlock/Scenes/ZombiePushBlock.unity
  3. 34
      Project/Assets/ML-Agents/Examples/PushBlock/Scripts/SimpleNPC.cs
  4. 11
      Project/Assets/ML-Agents/Examples/PushBlock/Scripts/SimpleNPC.cs.meta

999
Project/Assets/ML-Agents/Examples/PushBlock/Prefabs/ZombiePushBlockCollabArea.prefab
文件差异内容过多而无法显示
查看文件

980
Project/Assets/ML-Agents/Examples/PushBlock/Scenes/ZombiePushBlock.unity
文件差异内容过多而无法显示
查看文件

34
Project/Assets/ML-Agents/Examples/PushBlock/Scripts/SimpleNPC.cs


using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SimpleNPC : MonoBehaviour
{
public Transform target;
private Rigidbody rb;
public float walkSpeed = 1;
private Vector3 dirToGo;
// Start is called before the first frame update
void Awake()
{
rb = GetComponent<Rigidbody>();
}
// Update is called once per frame
void Update()
{
dirToGo = target.position - transform.position;
dirToGo.y = 0;
transform.rotation = Quaternion.LookRotation(dirToGo);
}
void FixedUpdate()
{
rb.AddForce(dirToGo.normalized * walkSpeed * Time.fixedDeltaTime, ForceMode.VelocityChange);
}
}

11
Project/Assets/ML-Agents/Examples/PushBlock/Scripts/SimpleNPC.cs.meta


fileFormatVersion: 2
guid: 9685bac759362440ea71765cdece3305
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存