大约有 78 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0044 秒)
...为什么? 我使用这种方式构造了一个射线: let point = new Vector2(Laya.stage.mouseX, Laya.stage.mouseY); camera.viewportPointToRay(point, this._ray);然后发现ray构造出来的位置始终不对,我沿着ray的方向放了一组3D物体,和从屏幕点击下去的位置始终...
来源: Laya_社区 发布时间: 20180201
...试着改一改就OK啦。。import Transform3D = Laya.Transform3D; import Vector3 = laya.d3.math.Vector3; import Quaternion = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler =...
来源: Laya_社区 发布时间: 20170714
...试着改一改就OK啦。。import Transform3D = Laya.Transform3D; import Vector3 = laya.d3.math.Vector3; import Quaternion = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler =...
来源: Laya_社区 发布时间: 20190224
...是以下方法: public static function getPublicVarNameList($class:Class):Vector.<String> { var vt:Vector.<String> = new Vector.<String>(); var classXml:XML=describeType($class); var variableXmlList:* = classXml["factory"][0]["variable"]; //遍...
来源: Laya_社区 发布时间: 20180329
...dChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya...
来源: Laya_社区 发布时间: 20190314
...ate scene:Laya.Scene3D; private text:Laya.Text; private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0); constructor() { this._upVector3 = new Laya.Vector3(0, 1, 0); Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stag...
来源: Laya_社区 发布时间: 20190531
...谢 class MultiTouch{ private text:Laya.Text; private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0); constructor(){ Laya.alertGlobalError = true; this._upVector3 = new Laya.Vector3(0, 1, 0); //初始化引擎 Laya3D.init(0, 0); La...
来源: Laya_社区 发布时间: 20190605
....Camera(0, 0.1, 100) ) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.Sprite3D.load( "res/test_mesh2.lh", Laya.Handler.create(this, function (sprite: Laya.Sprite3D): void { var clonesprite: Laya.Sprite3D ...
来源: Laya_社区 发布时间: 20220721
... public _start(state:Laya.RenderState):void{ this.ray = new Laya.Ray(Laya.Vector3.ZERO,Laya.Vector3.ZERO); this.phasorSprite3D = new Laya.PhasorSpriter3D(); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDown); } private onMouseDown():void{ this.camera.viewportPointToRay(new Laya.Vector2(Lay...
来源: Laya_社区 发布时间: 20181020
... Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; this.upVector3 = new Laya.Vector3(0, 1, 0); //预加载所有资源 let resource = ["Export/LayaScene_JJF/Conventional/JJF.lh"]; Laya.loader.create(resource, Laya.Handler.create(this, ...
来源: Laya_社区 发布时间: 20190531