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

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

401. discard property,please use transform's property instead [ 82%]

...aya.Camera(0, 0.1, 1000));         camera.transform.translate(new Laya.Vector3(0, 1.5, 4));         camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);         camera.addComponent(CameraMoveScript);         //方向光         var directionLight = scene.addChild(ne...

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

402. 3d下阴影渲染问题求解 [ 82%]

...box = boxSys.object3d; parent.addChild(box); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.localPosition = new Laya.Vector3((i-5)*boxSize*1.1,0,j*boxSize*1.1-1); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png...

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

403. laya.d3.terrain.TerrainChunk [ 82%]

...象数量。 Node parent : Node[read-only] 父节点。Node pickColor : Vector4RenderableSprite3D PICKCOLOR : int[static] 拾取颜色。RenderableSprite3D SAHDERDEFINE_LIGHTMAP : int[static] 精灵级着色器宏定义,光照贴图。RenderableSprite3D scene : *[read-only] 获得所属场景...

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

404. laya.d3.physics.shape.CapsuleColliderShape [ 82%]

...th : Number[read-only] 获取长度。 CapsuleColliderShape localOffset : Vector3 获取Shape的本地偏移。 ColliderShape localRotation : Quaternion 获取Shape的本地旋转。 ColliderShape needsCustomCollisionCallback : Boolean = falseColliderShape  orientation : int[read-only] 获取...

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

405. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 82%]

...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6...

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

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

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

407. laya.d3.component.Animator [ 82%]

... AnimationClip 获取默认动画片段。 Animator  curAnimationDatas : Vector.<Float32Array>[read-only] 获取骨骼数据。 Animator  currentFrameIndex : int[read-only] 获取当前帧数 Animator  currentFrameTime : Number[read-only] 获取当前帧时间,不包括重播时间 Ani...

来源: laya_api 发布时间: 20170929

408. 求ShuriKenParticle3D用法 [ 82%]

...rt ShurikenParticleMaterial = Laya.ShurikenParticleMaterial;     import Vector2                  = Laya.Vector2;     import Vector3                  = Laya.Vector3;     import Vector4                  = Laya.Vector4;     import Particle3...

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

409. 3D射线碰撞总是会穿墙,求解决方法 [ 82%]

...碰撞总是会穿墙,求解决方法 this.ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.scene.physi*Simulation.rayCast(this.ray, this.outHitInfo, 1) 角色侧面进入碰撞this.outHitInfo没有碰撞信息,正面进入碰撞才有 this.capsuleCollider = new Laya....

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

410. laya.d3.physics.shape.HeightfieldTerrainShape_API3.0 [ 82%]

... in laya/d3/physics/shape/HeightfieldTerrainShape.ts:11 initSize initSize: Vector3 = new Vector3() Defined in laya/d3/physics/shape/HeightfieldTerrainShape.ts:12 needsCustomCollisionCallback needsCustomCollisionCallback: boolean = false Inherited from CompoundColliderShape.needsCustomCollisionCallba...

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