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

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

21. 官方案例里摄像机绕物体旋转脚本的问题 [ 87%]

...试着改一改就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

22. 物理系统之ConfigurableConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 87%]

...刚体 ```typescript var boxA:MeshSprite3D = this.addRigidBodySphere(new Vector3(7, 3, 0),1); var boxARigid:Rigidbody3D = boxA.getComponent(Rigidbody3D); boxARigid.overrideGravity = true; boxARigid.isKinematic = true; var boxB:MeshSprite3D = this.addRigidBodyBox(new Vector3(10, 0, 0),1); (boxB.meshR...

来源: Laya2.0_文档 发布时间: 20210715

23. laya.maths.Vector3_API3.0 [ 84%]

...c/Protected All Inherited Externals Only exported Menu Globals "laya/maths/Vector3" Vector3 Class Vector3 Vector3 类用于创建三维向量。 Hierarchy Vector3 Implements IClone Index Constructors constructor Properties x y z ForwardLH ForwardRH NegativeUnitX ONE UnitX UnitY UnitZ Up ZERO Methods...

来源: Laya3.0_api 发布时间: 20231115

24. laya.d3.math.Vector3_API3.0 [ 83%]

...Protected All Inherited Externals Only exported Menu Globals "laya/d3/math/Vector3" Vector3 Class Vector3 Vector3 类用于创建三维向量。 Hierarchy Vector3 Implements IClone Index Constructors constructor Properties x y z ForwardLH ForwardRH NegativeUnitX ONE UnitX UnitY UnitZ Up ZERO Methods...

来源: Laya3.0_api 发布时间: 20231102

25. 拖拽限制角度和距离[ 83%]

...? 角度 如何 转换成 Y轴旋转 的四元数? 有没有Unity3d的Vector3.Angle(计算两个三维向量之间的角度)这样的方法?或求3D抛物线移动的方法或算法。 怎么求如图的角度x ,还有如果 b点在上面希望角度也要算出来 Dialog限制拖动区...

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

26. 射线检测-射线检测 [ 82%]

...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 1, 3)); camera.clearColor = null; Laya.loader.create(["../../res/threeDimen/skinModel/NvWu/NvWu-shenminvwu.lm", "../../res/threeDimen/skinModel/CunMinNan/CunMinNan-cunminnan.lm", "../../res/threeDimen/skinModel/Xia...

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

27. 高级应用-实时阴影 [ 81%]

...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.7, 1.2)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLigh...

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

28. 2.0版本可用的CameraMoveScript.ts [ 81%]

...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

29. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 79%]

...  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

30. 摄像机的移动和旋转(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 79%]

...坐标,false是相对世界坐标。 camera.transform.translate(new Laya.Vector3(0, 0, 3),false); //加载到场景 scene.addChild(camera); ``` ​ 旋转摄像机: ```typescript //旋转相机。局部坐标,弧度制(false为角度制)。 camera.transform.rotate(new Laya.Vector3(0, 0, 3)...

来源: Laya2.0_文档 发布时间: 20210714