大约有 720 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0044 秒)
Laya_社区(328) Laya3.0_api(99) Laya2.0_api(82) laya_api(76) Laya2.0_文档(63) Laya_示例(46) Laya3.0_文档(14) Laya2.0_示例(12)
...); camera.transform.translate(new Laya.Vector3(0, 2, 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_示例 发布时间: 20241117
...r 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 = scene.ad...
来源: Laya_社区 发布时间: 20170807
transform的旋转和移动是异步方法吗? 在调用transform.rotate后修改锚点,旋转的锚点也改变了,是不是因为rotate是异步方法?如果是,有没有办法实现旋转之后回调? var cube:MeshSprite3D; // 省略了添加到场景中的代码 // 先移动锚...
来源: Laya_社区 发布时间: 20190427
...perties elements DEFAULT Methods clone cloneTo determinant identity invert rotate scale translate transpose createFromMatrix4x4 createFromRotation createFromScaling createFromTranslation createRotationQuaternion forwardLookAt lookAt multiply Constructors constructor new Matrix3x3(createElement?: boo...
来源: Laya3.0_api 发布时间: 20231102
... { "filename": "walk_01.png", "frame": {"x":2,"y":2,"w":32,"h":48}, "rotated": false, "trimmed": false, "spriteSourceSize": {"x":0,"y":0,"w":32,"h":48}, "sourceSize": {"w":32,"h":48} }, { "filename": "walk_02.png", "frame": {"x":36,"y":2,"w":32,"h":48}, "rotated": false, "trimmed...
来源: Laya_社区 发布时间: 20160712
...ibute vec4 a_StartColor;\nattribute vec4 a_EndColor;\nattribute vec3 a_SizeRotation;\nattribute vec2 a_Radius;\nattribute vec4 a_Radian;\nattribute float a_AgeAddScale;\nattribute float a_Time;\n\nvarying vec4 v_Color;\nvarying vec2 v_TextureCoordinate;\n\nuniform float u_CurrentTime;\nuniform float...
来源: Laya_社区 发布时间: 20171109
... 但是有问题 我new sprite 然后 添加一个list 然后 sprite设置rotation = 180 那么你滑动list就是反向的了 你给我的连接 那个例子 角度 不是180根本发现不了问题 如果你把sprite的rotation设置成90 那么上下滑动本动不了 希望修复这个bug 因为...
来源: Laya_社区 发布时间: 20180119
...trix4x4):void[static] 计算仿射矩阵 Matrix4x4 createFromQuaternion(rotation:Quaternion, out:Matrix4x4):void[static] 从四元数计算旋转矩阵 Matrix4x4 createLookAt(eye:Vector3, target:Vector3, up:Vector3, out:Matrix4x4):void[static] 计算观察矩阵 Matrix4x4 createOrthoOffCent...
来源: laya_api 发布时间: 20170929
...efault class indexscene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.isAlpha = true; ...
来源: Laya_社区 发布时间: 20200903
...mera.transform.translate(new Laya.Vector3(0, 0.85, 1.7)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.directi...
来源: Laya_示例 发布时间: 20241117