• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 494 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0037 秒)

1. 加载模型后如何取得在Unity的Transform.Rotation属性 [ 100%]

加载模型后如何取得在Unity的Transform.Rotation属性 请问我如何取得我载入模型在Unity里面的Transform.Rotation参数。我试着在laya里面我查看_transform._localRotationEuler是Vector3(0,0,0),是不是只有提供Quaternion的表示而已呢? 2017-12-06 添加评...

来源: Laya_社区 发布时间: 20171206

2. 材质-BlinnPhong-反射贴图 [ 99%]

...ne()); var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 1.3, 1.8)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var directionLight = scene.addChild(new Laya.DirectionLi...

来源: Laya_示例 发布时间: 20241001

3. Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 98%]

...,   目测bug原因是 laya.cannonPhysics.js 内的_innerDerivePhysicsTransformation 方法中,错误的将 colliderShape.localOffset 的世界坐标,设置成了 transform.position 。导致物体会一直匀速移动。 _innerDerivePhysicsTransformation(physicTransformOut, force) { var tra...

来源: Laya_社区 发布时间: 20210904

4. 设置transform.localRotation之后,就不能再使用transform.rotate了 [ 97%]

设置transform.localRotation之后,就不能再使用transform.rotate了 laya3D, ... var ele=eleroot.getChildAt(0).clone(); ele.transform.position=new Laya.Vector3(0, 0, 0); scene.addChild(ele); ... ele.transform.rotate(new Laya.Vector3(10, 0, 0), true); //这里会有效 ele.transform.localRo...

来源: Laya_社区 发布时间: 20170323

5. 材质-BlinnPhong-漫反射贴图 [ 97%]

...ne()); var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 0.5, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var directionLight = scene.addChild(new Laya.DirectionLi...

来源: Laya_示例 发布时间: 20241001

6. 材质-BlinnPhong-法线贴图 [ 97%]

...; var camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 0.6, 1.1)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); var directionLight = this.scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.V...

来源: Laya_示例 发布时间: 20241001

7. 材质-BlinnPhong材质加载 [ 97%]

...cene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.9, 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....

来源: Laya_示例 发布时间: 20241001

8. transform.rotate()问题 [ 96%]

transform.rotate()问题 为什么我用的是rotate 但是不是旋转角度而是对位置进行上下平移 是什么原因啊 Demo在附件中 附件 : --> Test1.zip 2018-01-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

来源: Laya_社区 发布时间: 20180119

9. laya.d3.core.Transform3D [ 96%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames Transform3DProperties | Methods Packagelaya.d3.coreClasspublic class Transform3DInheritanceTransform3D EventDispatcher Object Transform3D 类用于实现3D变换。 Public Properties PropertyDefined By  dummy : Animation...

来源: laya_api 发布时间: 20170929

10. 材质-BlinnPhong-高光贴图 [ 96%]

... var camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 1000))); camera.transform.translate(new Laya.Vector3(0, 0.7, 1.3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight = this.scene.addChild(new Laya.DirectionLight())...

来源: Laya_示例 发布时间: 20241001