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

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

281. 为什么动态设置聚光灯朝向无效呢 [ 83%]

为什么动态设置聚光灯朝向无效呢 var tar = new Laya.Vector3(); var dir = new Laya.Vector3(); var src = model.transform.position; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLi...

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

282. ios微信clone特效会导致特效的mesh无法显示 [ 83%]

....Camera(0, 0.1, 100) ) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.Sprite3D.load( "res/test_mesh2.lh", Laya.Handler.create(this, function (sprite: Laya.Sprite3D): void { var clonesprite: Laya.Sprite3D ...

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

283. laya.d3.physics.shape.ColliderShape [ 83%]

...类为抽象类。 Public Properties PropertyDefined By  localOffset : Vector3 获取Shape的本地偏移。 ColliderShape  localRotation : Quaternion 获取Shape的本地旋转。 ColliderShape  needsCustomCollisionCallback : Boolean = falseColliderShape  type : int[read-only] 获取碰撞...

来源: Laya2.0_api 发布时间: 20190513

284. laya.d3.core.light.SpotLight [ 83%]

...ean[read-only] 获取在场景中是否激活。 Sprite3D  attenuation : Vector3 获取聚光的衰减。 SpotLight color : Vector3 灯光颜色。 LightSprite componentsCount : int[read-only] 获得组件的数量。 Sprite3D destroyed : Boolean[只读]是否已经销毁。对象销毁后不...

来源: laya_api 发布时间: 20170929

285. 正交相机要怎么控制啊,坐标什么的全部懵!看了这个官方示例表示不懂,为什么还要转化为2D坐标? [ 83%]

....addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); //-30改为-90 camera.transform.translate(new Laya.Vector3(0, 0.5, 0)); //(0,0.5,500)改为(0, 0.5, 0) camera.orthographicProjection = true; var directionLight = scene.addChild(new Laya....

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

286. IDE创建3D示例项目(ActionScript-3D基础(AS3)-快速开始一个LayaAir3D项目) [ 83%]

...dChild(new Camera(0, 0.1, 100))) as Camera; camera.transform.translate(new Vector3(0, 3, 3)); camera.transform.rotate(new Vector3(-30, 0, 0), true, false); //添加方向光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vector3...

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

287. LayaNative ShapeCast闪退 [ 83%]

...      scene.physicsSimulation.shapeCastAll(colliderShape, new Laya.Vector3(-10,0,0), new Laya.Vector3(10,0,0), hitResults);         // ---------代码结束          // ---------这部分代码不会崩溃         // scene.physicsSimulation.raycastAllFromTo(new...

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

288. Camera.viewportToRay中origin与direction相等问题 [ 83%]

...来自: 确认是我在创建Laya.Ray的时候使用了new Laya.Ray(Laya.Vector3.ZERO, Laya.Vector3.ZERO)这么愚蠢的做法导致的 老是忘了js没有值类型一说.   2019-03-19 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 SNA...

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

289. 问下,3D模型导出有什么要求 [ 83%]

...new DirectionLight()) as DirectionLight; directionLight.ambientColor = new Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Vector3(0.6, 0.6, 0.6); directionLight.diffuseColor = new Vector3(0.6, 0.6, 0.6); directionLight.direction = new Vector3(1, -1, 0); 2017-03-20 0 2 分享 微博 QZONE...

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

290. laya.renders.VertexElementFormat_API3.0 [ 83%]

...teOne Color NormalizedShort2 NormalizedShort4 Short2 Short4 Single Vector2 Vector3 Vector4 Methods getElementInfos Properties Static Byte2 Byte2: string = "byte2" Defined in laya/renders/VertexElementFormat.ts:24 字节数组2 Static Byte3 Byte3: string = "byte3" Defined in laya/renders/VertexElemen...

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