下边关于一些Unity向量点乘的基础点呢
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DotScript : MonoBehaviour
{
public Transform target;
// Start is called before the first frame update
void Start()
{
//点乘的几何意义
//在自己向量上投影的长度
//点乘结果>0 两个向量夹角为锐角
//点乘结果=0两个向量为直角
//点乘结果<0两个向量夹角为钝角
//我们可以用这个规律判断地方的大致方位
}
// Update is called once per frame
void Update()
{
画线段 前两