大约有 731 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)
Laya_社区(333) Laya3.0_api(99) Laya2.0_api(82) laya_api(76) Laya2.0_文档(63) Laya_示例(46) Laya3.0_文档(20) Laya2.0_示例(12)
... 0.1, 550))); camera.transform.translate(new Laya.Vector3(250, 1, 0)); var rotation = new Laya.Quaternion; Laya.Quaternion.lookAt(camera.position, new Laya.Vector3(0, 0, 0), camera.up, rotation); camera.transform.rotation = rotation; camera.clearColor = new Laya.Vector4(1, 1, 1, 1); camera.orthograp...
来源: Laya_社区 发布时间: 20170504
...nent<Rigidbody>().AddForce ( Quaternion.Euler (new Vector3(transform.rotation.eulerAngles.x,transform.rotation.eulerAngles.y,transform.rotation.eulerAngles.z)) *new Vector3(25f*length,0,0), ForceMode.VelocityChange); 大概的须求是2d场景,旋转鼠标,炮台也跟着旋转,点击鼠...
来源: Laya_社区 发布时间: 20200324
...到他。 在示例代码中已经用到了移动(translate),旋转(rotate)这两种变换,并且用三维向量代表x,y,z的值。两种方法都可以在参数中设置是否为局部空间移动,旋转。 ```typescript //移动摄像机 camera.transform.translate(new Laya.Vector3(0, ...
来源: Laya2.0_文档 发布时间: 20210715
...到他。 在示例代码中已经用到了移动(translate),旋转(rotate)这两种变换,并且用三维向量代表x,y,z的值。两种方法都可以在参数中设置是否为局部空间移动,旋转。 ```typescript //移动摄像机 camera.transform.translate(new Vector3(0, 3, 3)...
来源: Laya2.0_文档 发布时间: 20210714
...2.3图集含空白裁切后,锚点旋转bug,demo重现 附件 : --> BugRotation.zip 2019-11-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 18857358473 赞同来自: var tx3:Laya.Texture = Laya.loader.getRes...
来源: Laya_社区 发布时间: 20191112
...tors constructor Properties alpha blendMode dragging hitArea pivotX pivotY rotation scaleX scaleY scrollRect skewX skewY viewport EMPTY Methods recover reset create Constructors constructor new SpriteStyle(): SpriteStyle Defined in laya/display/css/SpriteStyle.ts:38 Returns SpriteStyle Properties al...
来源: Laya3.0_api 发布时间: 20231115
... Properties bt btWheelPtr worldMat worldPos worldQuat Accessors brake deltaRotation engineForce rotation steeringValue transform Methods getWorldTransform Constructors constructor new RaycastWheel(ptr: number): RaycastWheel Defined in laya/d3/physics/RaycastWheel.ts:13 Parameters ptr: number Returns...
来源: Laya3.0_api 发布时间: 20231115
...到他。 在示例代码中已经用到了移动(translate),旋转(rotate)这两种变换,并且用三维向量代表x,y,z的值。两种方法都可以在参数中设置是否为局部空间移动,旋转。 ```typescript //移动摄像机 camera.transform.translate(new Laya.Vector3(0, ...
来源: Laya2.0_文档 发布时间: 20210715
...amera.transform.translate(new Laya.Vector3(0, 0.8, 1.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); //加载精灵 var monkey = Laya.Load...
来源: Laya2.0_文档 发布时间: 20210714
...amera.transform.translate(new Laya.Vector3(0, 0.8, 1.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); //加载精灵 var monkey = Laya.Load...
来源: Laya2.0_文档 发布时间: 20210715