客户端触发相机射线检测

界面
服务端
Both Mobile and PC
可触发:
游戏实体

通过客户端点击事件触发相机射线检测时触发此事件

声明

event OnCameraRaycast(player entity<Player>, isHit bool, hitPosition Vector3, cameraDirection Vector3, cameraPosition Vector3, hitEntity entity<Entity>)
go

参数

名称 类型 描述
玩家 Player 触发玩家
是否击中 Bool 相机射线是否击中对象
击中位置 Vector3 相机射线击中位置
相机朝向 Vector3 客户端相机朝向
相机位置 Vector3 客户端相机位置
击中实体 Entity 击中实体