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

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

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

302. laya.d3.graphics.VertexElementFormat_API3.0 [ 82%]

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

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

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

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

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

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

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

308. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 82%]

...d:Laya.Scene3D; sp:Laya.Sprite3D; sp2:Laya.Sprite3D; translateA = new Laya.Vector3(-0.05, 0, 0); translateD = new Laya.Vector3( 0.05, 0, 0); constructor() { super(); //添加3D场景 var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; this.scene3d = scene; //添加照...

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

309. [laya2.0-2.3]CollisionUtils.ts bug [ 82%]

... out 相交点 */ static intersectsRayAndPlaneRP(ray:Ray, plane:Plane, out:Vector3):boolean { var distance:number; if (!CollisionUtils.intersectsRayAndPlaneRD(ray, plane, distance)) { out = Vector3._ZERO; return false; } Vector3.scale(ray.direction, distance, CollisionUtils._tempV30); Vector3.add(ra...

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

310. 粒子系统-场景与粒子 [ 82%]

...dChild(new Laya.Camera(0, 0.1, 100)) ; camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript);class Particle_Scene { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat....

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