• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 7 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0024 秒)

1. 射线检测-点击行走 [ 100%]

...ew Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _position = new Laya.Vector3(0, 0.25, 0); var _quaternion = new Laya.Quaternion(); var _outHitInfo = new Laya.RaycastHit(); function checkHit() { box.transform.position = _position; box.transform.rotation = _qu...

来源: Laya_示例 发布时间: 20241123

2. 射线检测-放置物体 [ 98%]

...ew Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _outHitInfo = new Laya.RaycastHit(); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mouseY; camera.view...

来源: Laya_示例 发布时间: 20241123

3. 自定义shader-地形shader [ 90%]

...terrain/terrain/ground_04.jpg")); customMaterial.setDiffuseScale1(new Laya.Vector2(27.92727, 27.92727)); customMaterial.setDiffuseScale2(new Laya.Vector2(13.96364, 13.96364)); customMaterial.setDiffuseScale3(new Laya.Vector2(18.61818, 18.61818)); customMaterial.setDiffuseScale4(new Laya.Vector2(13.9...

来源: Laya_示例 发布时间: 20241123

4. 3D场景-地形场景 [ 66%]

...ial.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.Vector2; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.TextureCube; import laya.d3.resource.models.SkyBox; import laya.display.Stage; import laya.events.Event; import laya.utils.Stat; impor...

来源: Laya_示例 发布时间: 20241123

5. 射线检测-射线检测 [ 57%]

...ew Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _corners = new Array(); _corners[0] = new Laya.Vector3(); _corners[1] = new Laya.Vector3(); _corners[2] = new Laya.Vector3(); _corners[3] = new Laya.Vector3(); _corners[4] = new Laya.Vector3(); _corners[5] = ne...

来源: Laya_示例 发布时间: 20241123

6. 射线检测-碰撞器混合 [ 52%]

...port laya.d3.math.Quaternion; import laya.d3.math.Ray; import laya.d3.math.Vector2; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.models.BoxMesh; import laya.d3.resource.models.CapsuleMesh; import laya.d3.resource.models.Cylinder...

来源: Laya_示例 发布时间: 20241123

7. 射线检测-选取物体 [ 50%]

...ew Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _outHitAllInfo = new Array(); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mouseY; camera.viewportPoi...

来源: Laya_示例 发布时间: 20241123