大约有 5 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0018 秒)
..., camera.projectionViewMatrix, _outPos); //获取的2d坐标必须做兼容屏幕适配操作 layaMonkey2D.pos(_outPos.x / Laya.stage.clientScaleX, _outPos.y / Laya.stage.clientScaleY); }class D3SpaceToD2Space { private scene: Laya.Scene; private camera: Laya.Camera; private layaMonkey3D: Laya.Sprit...
来源: Laya_示例 发布时间: 20241117
...or2(); var _outHitInfo = new Laya.RaycastHit(); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mouseY; camera.viewportPointToRay(point, ray); //射线检测获取所有检测碰撞到的物体 ...
来源: Laya_示例 发布时间: 20241117
...transform.position = _position; box.transform.rotation = _quaternion; //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mouseY; camera.viewportPointToRay(point, ray); //射线检测获取所有检测碰撞到的物体 ...
来源: Laya_示例 发布时间: 20241117
...ya.Vector2(); var _outHitAllInfo = new Array(); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mouseY; camera.viewportPointToRay(point, ray); //射线检测获取所有检测碰撞到的物体 ...
来源: Laya_示例 发布时间: 20241117
...r phasorSpriter3D = new Laya.PhasorSpriter3D(); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.stage.mouseX; point.elements[1] = Laya.stage.mouseY; camera.viewportPointToRay(point, ray); //变化小飞龙的缩放和位置,并更新其模拟碰撞器 if (_scale >= 1) ...
来源: Laya_示例 发布时间: 20241117