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

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

11. 摄像机捕捉目标(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 81%]

...钮切换注视目标。 ```typescript //up向量 private _up = new Laya.Vector3(0, 1, 0); ``` ```typescript //点击事件 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ this.index++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.tra...

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

12. [LayaAir3][LayaAir3]V3.2 | camera.up.z 调试结果不一致,导致无法判断结果? [ 80%]

...调用camera.up的值结果均为零, 但是我如果自己输入一个Vector3的模拟值 就会得到正常结果 我这里初步判断:camera.up 输出值只有在控制台展开可以看到,可是调用 没办法正确获取   对于js浮点数的问题,参看camera.up.z 的值 不是...

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

13. Laya.Quaternion.rotationLookAt 怀疑存在BUG [ 79%]

...onLookAt 的 结果是错误的  LAYA版本 RoundCamera_Laya(zhujue: Laya.Vector3, enimy: Laya.Vector3, ca: Laya.Transform3D) {      var enimyPos = enimy;     enimyPos.y = 0;      var cameraPos = ca.position;     cameraPos.y = 0;      var enimy2cameradir = JieTools.subVec3(enimyPo...

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

14. 高级应用-寻路导航 [ 79%]

...项目开发更高效。Laya3D.init(0, 0, true); this._position = new Laya.Vector3(0, 0, 0); this._upVector3 = new Laya.Vector3(0, 1, 0); this._tarPosition = new Laya.Vector3(0, 0, 0); this._finalPosition = new Laya.Vector3(0, 0, 0); this._quaternion = new Laya.Quaternion(); this.index = 0; this.cur...

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

15. 3D变换 · LayaAir3.3 · 引擎文档 · LAYABOX [ 79%]

...距离。 * @param isLocal 是否局部空间。 */ translate(translation: Vector3, isLocal: boolean = true): void { if (isLocal) { Matrix4x4.createFromQuaternion(this.localRotation, Transform3D._tempMatrix0); Vector3.transformCoordinate(translation, Transform3D._tempMatrix0, Transform3D._tempVector...

来源: Laya3.0_文档 发布时间: 20240910

16. laya.maths.Quaternion_API3.0 [ 78%]

...mber = 0 数组偏移。 Returns void getYawPitchRoll getYawPitchRoll(out: Vector3): void Defined in laya/maths/Quaternion.ts:388 分解四元数到欧拉角(顺序为Yaw、Pitch、Roll),参考自http://xboxforums.create.msdn.com/forums/p/4574/23988.aspx#23988,问题绕X轴翻转超过±90度...

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

17. [LayaAir3]V3.2 | 调试结果不一致,导致无法判断结果? [ 78%]

...@regClass() export class Main extends Laya.Script {   testData = new Laya.Vector3(1, 1, 1);   @property(Laya.Camera)   camera: Laya.Camera;    onStart() {     //@ts-ignore     window.camera = this.camera;     console.log("Game start", this.camera._up);     console.log(       "Game st...

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

18. laya.d3.renderobjs.nativeobj.NativeTransform3D_API3.0 [ 78%]

...ya/d3/RenderObjs/NativeOBJ/NativeTransform3D.ts:14 Static tmpVec3 tmpVec3: Vector3 = new Vector3() Inherited from Transform3D.tmpVec3 Defined in laya/d3/core/Transform3D.ts:882 Accessors localMatrix get localMatrix(): Matrix4x4 set localMatrix(value: Matrix4x4): void Overrides Transform3D.localMatri...

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

19. laya.d3.math.Quaternion_API3.0 [ 78%]

...mber = 0 数组偏移。 Returns void getYawPitchRoll getYawPitchRoll(out: Vector3): void Defined in laya/d3/math/Quaternion.ts:388 分解四元数到欧拉角(顺序为Yaw、Pitch、Roll),参考自http://xboxforums.create.msdn.com/forums/p/4574/23988.aspx#23988,问题绕X轴翻转超过±90...

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

20. CameraMoveScript.as在哪儿下载群里的有错 [ 76%]

...a.d3.core.scene.Scene; import laya.d3.math.Quaternion; import laya.d3.math.Vector3; import laya.events.Event; import laya.events.KeyBoardManager; /** * ... * @author */ public class CameraMoveScript extends Script { protected var lastMouseX:Number; protected var lastMouseY:Number; protected var yawP...

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