大约有 42 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0030 秒)
...钮切换注视目标。 ```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
...调用camera.up的值结果均为零, 但是我如果自己输入一个Vector3的模拟值 就会得到正常结果 我这里初步判断:camera.up 输出值只有在控制台展开可以看到,可是调用 没办法正确获取 对于js浮点数的问题,参看camera.up.z 的值 不是...
来源: Laya_社区 发布时间: 20241030
...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
...项目开发更高效。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
...距离。 * @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
...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
...@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
...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
...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
...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