大约有 3 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0022 秒)
...nt(colliderCheck); ``` - 6.射线检测功能 ```typescript mouseDown(){ //获取鼠标点击位置的屏幕坐标 this.point.x = MouseManager.instance.mouseX; this.point.y = MouseManager.instance.mouseY; //由点击的屏幕坐标产生射线 this.camera.viewportPointToRay(this.point, this.ray); //...
来源: Laya2.0_文档 发布时间: 20210715
...nt(colliderCheck); ``` - 6.射线检测功能 ```typescript mouseDown(){ //获取鼠标点击位置的屏幕坐标 this.point.x = MouseManager.instance.mouseX; this.point.y = MouseManager.instance.mouseY; //由点击的屏幕坐标产生射线 this.camera.viewportPointToRay(this.point, this.ray); //...
来源: Laya2.0_文档 发布时间: 20210714
...hape:Laya.BoxColliderShape = new Laya.BoxColliderShape(0.5, 0.4, 0.045); //获取本地偏移 var localOffset:Laya.Vector3 = boxShape.localOffset; //修改偏移 localOffset.setValue(0, 0, 0.125); boxShape.localOffset = localOffset; //为复合碰撞形状对象添加子形状(刚刚创建的盒...
来源: Laya2.0_文档 发布时间: 20210715