大约有 109 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
...h.meshRender.material = fishmaterial; fish.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); fish.transform.localPosition = new Laya.Vector3(0,1,0); fish.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); //移动鱼 Laya.Tween.to(fish,{x:-1},3000,Laya.Ease.linearIn,null) 这个Laya.Tween...
来源: Laya_社区 发布时间: 20170918
...添加到场景中的代码 // 先移动锚点 cube.transform.pivot = new Vector3( cube.transform.pivot.x + 0, cube.transform.pivot.y - height/2, cube.transform.pivot.z - width/2); // 旋转 cube...
来源: Laya_社区 发布时间: 20190427
... colorIndex); } } private _getRandomPosition(positionRanvge: number): Laya.Vector3 { let getRangeRandom = () => { return (Math.random() - 0.5) * positionRanvge; } return new Laya.Vector3(getRangeRandom(), 0.3, getRangeRandom()); } } shader代码如下: Shader3D Start { type:Shader3D name:PBRCol...
来源: Laya3.0_文档 发布时间: 20251010
...aya.VRCamera(0.03, 0, 0, 0.1, 100)); vrCamera.transform.translate(new Laya.Vector3(0, 2, 0)); vrCamera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; vrCamera.addComponent(VRCameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox2...
来源: Laya_示例 发布时间: 20251130
...项目开发更高效。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_示例 发布时间: 20251130
...um : BoundFrustum[read-only] 获取摄像机视锥。 Camera clearColor : Vector4摄像机的清除颜色,默认颜色为CornflowerBlue。BaseCamera clearFlag : int清楚标记。BaseCamera cullingMask : int 可视层位标记遮罩值,支持混合 例:cullingMask=Math.pow(2,0)|Math.pow(2,1)为...
来源: Laya2.0_api 发布时间: 20190513
...项目开发更高效。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.pn...
来源: Laya_示例 发布时间: 20251130
...te3D; import laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.utils.Handler; import laya.display.Stage; import laya.events.Event; import laya.utils.Stat; public class LayaSample { ...
来源: Laya_社区 发布时间: 20190416
...距离。 * @param isLocal 是否局部空间。 */ translate(translation: Vector3, isLocal: boolean = true): void { if (isLocal) { Matrix4x4.createFromQuaternion(this.localRotation, Transform3D._tempMatrix0); Vector3.transformCoordinate(translation, Transform3D._tempMatrix0, Transform3D._tempVector...
来源: Laya3.0_文档 发布时间: 20251010
...ipt extends Laya.Script { /** @private */ protected _tempVector3: Laya.Vector3 = new Laya.Vector3(); protected lastMouseX: number; protected lastMouseY: number; protected yawPitchRoll: Laya.Vector3 = new Laya.Vector3(); protected resultRotation: Laya...
来源: Laya_社区 发布时间: 20200707