大约有 16 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0022 秒)
...te); // Main var amount = 500; var character1 = [ "../../res/cartoon2/yd-6_01.png", "../../res/cartoon2/yd-6_02.png", "../../res/cartoon2/yd-6_03.png", "../../res/cartoon2/yd-6_04.png", "../../res/cartoon2/yd-6_05.png", "../../res/cartoon2/yd-6_06.png", "../../res/cartoon2/yd-6_07.png", "../../res/c...
来源: Laya_示例 发布时间: 20241118
...tage.addChild(Laya.Scene.load("../../res/threeDimen/scene/particle/Example_01.ls")); var camera = scene.addChild(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_示例 发布时间: 20241118
...更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 10...
来源: Laya_示例 发布时间: 20241118
...op(1, this, loop); function loop() { scaleValue = Math.sin(scaleDelta += 0.01); pos1.elements[0] = pos2.elements[0] = scaleValue * 13; pos1.elements[1] = Math.sin(scaleValue * 20) * 2; pos2.elements[1] = Math.sin(scaleValue * 20) * 2; glitter.addGlitterByPositions(pos1, pos2); }class GlitterDemo { p...
来源: Laya_示例 发布时间: 20241118
...caleDelta = 0; function animate() { _position.x = Math.sin(scaleDelta += 0.01); layaMonkey3D.transform.position = _position; camera.viewport.project(layaMonkey3D.transform.position, camera.projectionViewMatrix, _outPos); //获取的2d坐标必须做兼容屏幕适配操作 layaMonkey2D.pos(_outPos.x...
来源: Laya_示例 发布时间: 20241118
...距离与上次距离变化,确定是放大还是缩小 const factor = 0.01; sp.scaleX += (distance - lastDistance) * factor; sp.scaleY += (distance - lastDistance) * factor; lastDistance = distance; } function onMouseUp(e) { Laya.stage.off(Event.MOUSE_MOVE, this, onMouseMove); } /**计算两个...
来源: Laya_示例 发布时间: 20241118
...更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = (scene.addChild(new Laya.Camera(0, 0.1, 1...
来源: Laya_示例 发布时间: 20241118
...更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = (scene.addChild(new Laya.Camera(0, 0.1, 1...
来源: Laya_示例 发布时间: 20241118
...更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); this.specularMapUrl = ["../../res/threeDimen/skinModel/dude/Assets/dude/headS.png", "../../res/threeDimen/skinModel/dude/Assets/dude/jacketS.png", "../../res/threeDimen/skinModel/dude/Assets/dude/pantsS.png", "../../r...
来源: Laya_示例 发布时间: 20241118
...更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); this.normalMapUrl = ["../../res/threeDimen/staticModel/lizardCal/rock_norm.png", "../../res/threeDimen/staticModel/lizardCal/lizard_norm.png", "../../res/threeDimen/staticModel/lizardCal/lizard_norm.png"]; Laya.stage....
来源: Laya_示例 发布时间: 20241118