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

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

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. 为什么动态设置聚光灯朝向无效呢 [ 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

283. laya.d3.physics.shape.StaticPlaneColliderShape_API3.0 [ 83%]

...nsformations Constructors constructor new StaticPlaneColliderShape(normal: Vector3, offset: number): StaticPlaneColliderShape Overrides ColliderShape.constructor Defined in laya/d3/physics/shape/StaticPlaneColliderShape.ts:22 创建一个新的 StaticPlaneColliderShape 实例。 Parameters normal: V...

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

284. laya.d3.core.pixelline.PixelLineData_API3.0 [ 83%]

...ore/pixelLine/PixelLineData.ts:15 线结束颜色 endPosition endPosition: Vector3 = new Vector3() Defined in laya/d3/core/pixelLine/PixelLineData.ts:11 线结束位置 startColor startColor: Color = new Color() Defined in laya/d3/core/pixelLine/PixelLineData.ts:13 线开始颜色 startPosition star...

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

285. 动画混合问题,Avatar动画混合报错. [ 83%]

...nimator) as Laya.Animator; console.log("11"); }  public RoleMove(dir:Laya.Vector3) { let norDir:Laya.Vector3 = Laya.Vector3.ZERO; Laya.Vector3.normalize(dir,norDir); console.log(norDir); //this.sprite.transform.translate(norDir,false); // let position = Laya.Vector3.ZERO; // Laya.Vector3.add(this.s...

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

286. 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

287. 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

288. 关于平行光渲染投影问题,求解惑 [ 83%]

...ya.Camera; camera.orthographic = true; camera.transform.translate(new Laya.Vector3(0, 4, 8),false); camera.transform.lookAt(new Laya.Vector3(0,0,0),new Laya.Vector3(0,1,0)); //创建方向光 var light:Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; //移动...

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

289. 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

290. 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