123456789101112131415161718192021222324 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class FollowItemConfig : MonoBehaviour {
- public MeshCollider TriggerCol;//外围点的框
- public Collider ModelCol;//模型框
- void Start () {
-
- }
-
- // Update is called once per frame
- void Update () {
-
- }
- public Vector3 ClosePoint(Vector3 pos)
- {
- return this.ModelCol.ClosestPoint(pos);
- }
- }
|