大约有 13 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0035 秒)
...来自: 确认是我在创建Laya.Ray的时候使用了new Laya.Ray(Laya.Vector3.ZERO, Laya.Vector3.ZERO)这么愚蠢的做法导致的 老是忘了js没有值类型一说. 2019-03-19 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 SNA...
来源: Laya_社区 发布时间: 20190319
...default;死活检测不到; camera: Laya.Camera; ray = new Laya.Ray(Laya.Vector3._ZERO, Laya.Vector3._ZERO) hitInfo:Laya.HitResult=new Laya.HitResult() physics:Laya.PhysicsSimulation; onAwake():void{ this.camera = this.owner.getChildByName("Main Camera") as Laya.Camera; let scene: Laya.Scene3D = t...
来源: Laya_社区 发布时间: 20190621
...nimator) as Laya.Animator; console.log("11"); } public RoleMove(dir:Laya.Vector3) { let norDir:Laya.Vector3 = Laya.Vector3.ZERO; Laya.Vector3.normalize(dir,norDir); console.log(norDir); //this.sprite.transform.translate(norDir,false); // let position = Laya.Vector3.ZERO; // Laya.Vector3.add(this.s...
来源: Laya_社区 发布时间: 20191026
...urns void decomposeTransRotMatScale decomposeTransRotMatScale(translation: Vector3, rotationMatrix: Matrix4x4, scale: Vector3): boolean Defined in laya/maths/Matrix4x4.ts:545 分解矩阵为平移向量、旋转矩阵、缩放向量。 Parameters translation: Vector3 平移向量。 rotationMatrix: ...
来源: Laya3.0_api 发布时间: 20231115
...urns void decomposeTransRotMatScale decomposeTransRotMatScale(translation: Vector3, rotationMatrix: Matrix4x4, scale: Vector3): boolean Defined in laya/d3/math/Matrix4x4.ts:523 分解矩阵为平移向量、旋转矩阵、缩放向量。 Parameters translation: Vector3 平移向量。 rotationMatrix...
来源: Laya3.0_api 发布时间: 20231102
this.tranfrom.translate(new Laya.Vector3(0,0,0), false);物体居然也能动?还是往奇怪的方向动,这些API到底有没有经过测试? 2017-11-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Fait...
来源: Laya_社区 发布时间: 20171109
... out 相交点 */ static intersectsRayAndPlaneRP(ray:Ray, plane:Plane, out:Vector3):boolean { var distance:number; if (!CollisionUtils.intersectsRayAndPlaneRD(ray, plane, distance)) { out = Vector3._ZERO; return false; } Vector3.scale(ray.direction, distance, CollisionUtils._tempV30); Vector3.add(ra...
来源: Laya_社区 发布时间: 20191012
... 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
...; // scene_360.addChild(camera); camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position = new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelViewer); modelViewer.AroundPos = Laya.Vector3._ZERO; var directionLight = (scene_360 as Laya.Node)...
来源: Laya_社区 发布时间: 20190813
...参数,在blend为BLEND_ENABLE_SEPERATE时生效。 stencilOp stencilOp: Vector3 Defined in laya/d3/core/material/RenderState.ts:156 模板设置值 stencilRef stencilRef: number Defined in laya/d3/core/material/RenderState.ts:154 模板值 一般会在0-255 stencilTest stencilTest: number Defined i...
来源: Laya3.0_api 发布时间: 20231102