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

大约有 440 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0049 秒)

71. 蒙皮动画挂点应用 [ 74%]

...dAt(0) as SkinnedMeshSprite3D; // animationNodeTemp.addChild(effect); body.addComponent(SkinAnimations); this.skinAnimation = body.getComponentByType(SkinAnimations) as SkinAnimations; this.skinAnimation._initialize(body); // var tempet:AnimationTemplet = new AnimationTemplet(); var tempet:Animation...

来源: Laya_社区 发布时间: 20170819

72. VR场景-VR地球 [ 74%]

...0, 0.1, 10)); vrCamera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; vrCamera.addComponent(VRCameraMoveScript); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var earth = scene.a...

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

73. 创建Laya.PolygonCollider后,页面不显示,导致其他碰撞体也不显示 [ 74%]

...他碰撞体也不显示 this.sp = new Laya.Sprite();  let rb = this.sp.addComponent(Laya.RigidBody); let polygonCollider4 = this.sp.addComponent(Laya.PolygonCollider); polygonCollider4.points = "429,1094,433,1094,440,1094,442,1094,446,1094,448,1094,450,1094,454,1094"; 创建2D多边形碰撞体后...

来源: Laya_社区 发布时间: 20221124

74. Laya3D Camera 添加控制脚本 CameraMoveScript 如何添加? [ 73%]

...,主要是报undefine错误,或者cls的错误,请问到底如何用addComponent添加控制脚本? 附件 : --> 2019-06-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 泡茶用咖啡 赞同来自: 试...

来源: Laya_社区 发布时间: 20190602

75. 多光源渲染(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 73%]

....addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯光移动脚本添加到摄像机上 var moveScript = camera.addComponent(L...

来源: Laya2.0_文档 发布时间: 20210715

76. 多光源渲染(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 73%]

....addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯光移动脚本添加到摄像机上 var moveScript = camera.addComponent(L...

来源: Laya2.0_文档 发布时间: 20210715

77. 子弹添加了colliderShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null” [ 72%]

... { let bullet = new Laya.MeshSprite3D(m); this.Sn.addChild(bullet); bullet.addComponent(BulletScript); var bulletCollider = bullet.addComponent(Laya.PhysicsCollider); var bulletShape = new Laya.MeshColliderShape(); bulletShape.mesh = bullet.meshFilter.sharedMesh; bulletCollider.colliderShape = bulle...

来源: Laya_社区 发布时间: 20190308

78. 照相机-多照相机 [ 72%]

...amera2.normalizedViewport = new Laya.Viewport(0.5, 0.0, 0.5, 0.5); camera2.addComponent(CameraMoveScript); camera2.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox2/skyCube.ltc"); camera2.sky = s...

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

79. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 71%]

...var camera: Camera = scene.getChildByName("Main Camera") as Camera; camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯光移动脚本添加到摄像机上 var moveScript: LightMoveScript = camera.ad...

来源: Laya2.0_文档 发布时间: 20210714

80. 高级应用-寻路导航 [ 71%]

...给terrainSprite添加PathFind组件 var pathFingding = this.terrainSprite.addComponent(Laya.PathFind); pathFingding.setting = { allowDiagonal: true, dontCrossCorners: false, heuristic: PathFinding.core.Heuristic.manhattan, weight: 1 }; var aStarMap = Laya.Loader.getRes("../../res/threeDimen/scene/T...

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