圆柱体范围判定

物理
Both Server and Client
Both Mobile and PC

判断目标实体是否在规定的圆柱体范围内,如果实体没有位置属性,会返回假

声明

func IsInsideCylinder(target entity, center Vector3, radius float, height float, rotation Vector3) bool
go

参数

输入

名称 类型 描述
目标 entity 目标实体
中心点 Vector3 规定圆柱体的中心点
半径 Float 规定圆柱体的截面半径
高度 Float 规定圆柱体的高度
旋转欧拉角 Vector3 规定圆柱体绕中心点的三维旋转欧拉角

返回

类型 描述
Bool 判定结果