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

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

41. 动态阴影被切割了?为啥没有显示完成的阴影 [ 85%]

... var instance = new Laya.MeshSprite3D(new Laya.BoxMesh(x, y, z)); instance.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); instance.transform.position = new Laya.Vector3(posX, posY, posZ); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load(textureUrl...

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

42. 粒子系统-燃烧大地 [ 85%]

...cene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var particleSprite3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/particle/ETF_Burning_Ground.lh...

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

43. 粒子系统-永恒之光 [ 85%]

...cene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var particleSprite3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/particle/ETF_Eternal_Light.lh"...

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

44. 如何通过四元数旋转 [ 84%]

...: GetComponent<Rigidbody>().AddForce ( Quaternion.Euler (new Vector3(transform.rotation.eulerAngles.x,transform.rotation.eulerAngles.y,transform.rotation.eulerAngles.z)) *new Vector3(25f*length,0,0), ForceMode.VelocityChange); 大概的须求是2d场景,旋转鼠标,炮台也跟着旋转...

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

45. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 84%]

...Light()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载的时候,我们使用的BaseMaterial.load方法...

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

46. 如何限制旋转角度 [ 84%]

如何限制旋转角度 我用sphere.transform.rotate(vecty,false,false); 旋转这个球体的X轴角度,假定是个地球仪,怎么限制转到北极或南极就不让它转了,如果转到北极或南极仍然能继续转的话,地球就成倒置的,不符合实际需求,怎么处...

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

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

...ene()); var camera = scene.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 ...

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

48. Resources already exist,is repeated loading 加载特效报重复加载 [ 84%]

...exist,is repeated loading 加载特效报重复加载 export default class TransformDemo{     private scene:Laya.Scene3D;     private position:Laya.Vector3 = new Laya.Vector3(0, 0, 0);     private position1:Laya.Vector3 = new Laya.Vector3(0, 0, 0);     private rotate:Laya.Vector3 = ne...

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

49. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 84%]

...Light()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载的时候,我们使用的BaseMaterial.load方法...

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

50. laya.d3.physics.RaycastWheel_API3.0 [ 84%]

...worldQuat Accessors brake deltaRotation engineForce rotation steeringValue transform Methods getWorldTransform Constructors constructor new RaycastWheel(ptr: number): RaycastWheel Defined in laya/d3/physics/RaycastWheel.ts:13 Parameters ptr: number Returns RaycastWheel Properties bt bt: any Defined ...

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