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

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

151. 关于3d的碰撞检测 [ 56%]

...te3D;//拿到地板 const sprite3d1MeshCollider: Laya.MeshCollider = field.addComponent(Laya.MeshCollider) as Laya.MeshCollider; sprite3d1MeshCollider.mesh = field.meshFilter.sharedMesh; 检测碰撞: var rayOrigin: Laya.Vector3 = new Laya.Vector3(0, 0, 0); //射线原点 //根据角色位置计算...

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

152. 把摄像机添加到一个物体上,然后绕着这个物体旋转 [ 56%]

... new Laya.Sprite3D(); cjd0.addChild(this.camera); map.addChild(cjd0); cjd0.addComponent(CameraMoveScript); 可是,这样添加的脚本旋转,键盘就用不了,应该怎么控制他放大缩小     2018-04-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

153. 场景天空(JavaScript-3D基础(JS)-LayaAir3D之场景渲染配置) [ 56%]

....getChildByName("Main Camera"); //加入摄像机移动控制脚本 camera.addComponent(CameraMoveScript); //加载相机天空盒材质 Laya.BaseMaterial.load("res/threeDimen/skyBox/skyBox1/SkyBox.lmat", Laya.Handler.create(null, function(mat) { var skyRenderer:SkyRenderer = camera.skyRenderer; sky...

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

154. 动画-新版骨骼动画 [ 56%]

... camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new ...

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

155. CameraMoveScript,父对象Camera移除removeAllComponent后,还会继续获取鼠标事件 [ 56%]

..._sceneCamera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.m_sceneCamera.addComponent(CameraMoveScript); this.stage.addChild(this.m_scene); this.m_scene.addChild(this.m_sceneCamera); 在destory的时候 this.stage.removeChild(this.m_scene); this.m_sceneCamera.removeAllComponent(); this.m_scene.des...

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

156. 在Unity中设置动画事件(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 56%]

... = scene.getChildByName("Cube"); //添加组件(脚本) var _script = cube.addComponent(SceneScript); //label用于显示 var _lab = new Laya.Label(); _lab.text = "test"; _lab.height = 100; _lab.width = 100; _lab.fontSize = 40; _lab.pos(200,200); Laya.stage.addChild(_lab); //给脚本的加强表现...

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

157. laya.d3.core.reflectionprobe.ReflectionProbe_API3.0 [ 56%]

...e _processActive _setIndexInReflectionList addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener ...

来源: Laya3.0_api 发布时间: 20231102

158. 角色碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 56%]

.../为精灵添加角色控制器 var character:CharacterController = monkey.addComponent(CharacterController); //创建胶囊碰撞器 var sphereShape:CapsuleColliderShape = new CapsuleColliderShape(1.0, 3.4); //设置Shape的本地偏移 sphereShape.localOffset = new Vector3(0, 1.7, 0); //设置角...

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

159. 请问我导入3d模型一直找不到它 [ 56%]

...度不对,被模型覆盖 添加CameraMoveScript.ts scene.currentCamera.addComponent(CameraMoveScript);旋转角度查看   2016-10-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 JUNLIU 相关问题 Layabox 2.0 bate5 运行编译...

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

160. 我想用代码来绘制一个3D球如何弄呢?看我写的 [ 56%]

...ew Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; camera.addComponent(CameraMoveScript); //球体 var sphere = new Laya.SphereMesh(10,10,10); var sphereMesh = new Laya.MeshSprite3D(sphere); sphereMesh.transform.localScale = new Laya.Vector3(100, 100, 100); scene.addChild(sphereMesh...

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