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

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

11. Sprite3D-Sprite3D变换 [ 94%]

... camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey1 = scene.addChild(Laya...

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

12. FrameAnimation [ 94%]

...{         "target": 172,         "keyframes": {             "rotation": [{                 "value": 0,                 "tweenMethod": "linearNone",                 "tween": true,                 "target": 172,                 "key": "rotation", ...

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

13. Mesh网格-网格加载 [ 92%]

...amera.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); directionLight.direction = new Laya.Vector3(1, -1, -1);...

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

14. laya.d3.core.Transform3D [ 92%]

...ocalPositionZ : Number 获取局部位置Z轴分量。 Transform3D  localRotation : Quaternion 获取局部旋转。 Transform3D  localRotationEuler : Vector3 获取局部空间欧拉角。 Transform3D  localRotationEulerX : Number 获取局部空间的X轴欧拉角。 Transform3D  localRota...

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

15. json图片中带有pivot属性无效吗 [ 92%]

...,                 "h": 299             },             "rotated": false,             "trimmed": true,             "spriteSourceSize": {                 "x": 133,                 "y": 21,                 "w": 137,                 "h": 299...

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

16. rotate设置的值和获取的值不一样 [ 90%]

rotate设置的值和获取的值不一样 this.transform.rotate(new Vector3(0, 1.68, 0)); trace(">>>>>rotate>>>>" + transform.localRotation.y); trace(">>>>>rotate>>>>" + transform.rotation.y); 设置的旋转和输出的旋转值不一样,这...

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

17. 设置了rotation后,事件响应出问题 [ 89%]

设置了rotation后,事件响应出问题 问题1: 使用laya1.5.x版本,设置rotation=70,有事件响应; 然后再把rotation设为0,发现事件响应区域仍然为旋转70度后的区域 问题2 使用 laya1.6.1版本,设置rotation=70后,事件响应区域仍然为未旋转...

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

18. 高级应用-实时阴影 [ 89%]

...amera.transform.translate(new Laya.Vector3(0, 0.7, 1.2)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); //...

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

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

...nce = 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); instanc...

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

20. 粒子系统-燃烧大地 [ 88%]

...); 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"));class Particle_BurningGround { constructor() { Laya3D.init(0,...

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