立方体范围判定

物理
Both Server and Client
Both Mobile and PC

判断目标实体是否在规定的立方体范围内

声明

func IsInsideBox(target entity, center Vector3, length float, width float, height float, rotation Vector3) bool
go

参数

输入

名称 类型 描述
目标 entity 目标实体
中心点 Vector3 规定立方体的中心点
长度 Float 规定立方体的长
宽度 Float 规定立方体的宽
高度 Float 规定立方体的高
旋转欧拉角 Vector3 规定立方体绕中心点的三维旋转欧拉角

返回

类型 描述
Bool 判定结果