大约有 6 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0019 秒)
...t.shadow = true; //可见阴影距离 directionLight.shadowDistance = 3; //生成阴影贴图尺寸 directionLight.shadowResolution = 2048; //生成阴影贴图数量 directionLight.shadowPSSMCount = 1; //模糊等级,越大越高,更耗性能 directionLight.shadowPCFType = 3; Laya.loader.create([ "...
来源: Laya_示例 发布时间: 20241124
.../skyBox/skyBox3/skyCube.ltc"); camera.sky = skyBox; //根据场景中方块生成路径点 initPath(this.scene); //获取可行走区域模型 var meshSprite3D = this.scene.getChildByName('Scenes').getChildByName('HeightMap'); //使可行走区域模型隐藏 meshSprite3D.active = false; var heightM...
来源: Laya_示例 发布时间: 20241124
...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.Physics...
来源: Laya_示例 发布时间: 20241124
...sition = _position; box.transform.rotation = _quaternion; //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mouseY; camera.viewportPointToRay(point, ray); //射线检测获取所有检测碰撞到的物体 Laya.Physics...
来源: Laya_示例 发布时间: 20241124
...; 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.Physics...
来源: Laya_示例 发布时间: 20241124
...ter3D = new Laya.PhasorSpriter3D(); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.stage.mouseX; point.elements[1] = Laya.stage.mouseY; camera.viewportPointToRay(point, ray); //变化小飞龙的缩放和位置,并更新其模拟碰撞器 if (_scale >= 1) _scaleIndex ...
来源: Laya_示例 发布时间: 20241124