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

大约有 39 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)

11. Laya.Quaternion.rotationLookAt 怀疑存在BUG [ 88%]

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

12. 高级应用-寻路导航 [ 88%]

...项目开发更高效。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_示例 发布时间: 20251130

13. 3D变换 · LayaAir3.3 · 引擎文档 · LAYABOX [ 88%]

...距离。 * @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_文档 发布时间: 20251010

14. laya.maths.Quaternion_API3.0 [ 87%]

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

15. laya.d3.renderobjs.nativeobj.NativeTransform3D_API3.0 [ 87%]

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

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

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

17. laya.d3.math.Quaternion_API3.0 [ 87%]

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

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

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

19. 有关Laya3D碰撞检测疑问 [ 85%]

...e test { export class Test { private ray: Laya.Ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); private point: Laya.Vector2 = new Laya.Vector2(); private _outHitAllInfo: Array<Laya.RaycastHit>;  private camera: Laya.Camera; private label: Laya.Label; constructor() { L...

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

20. laya.d3.physics.CharacterController_API3.0 [ 84%]

...tructors constructor new CharacterController(stepheight?: number, upAxis?: Vector3, collisionGroup?: number, canCollideWith?: number): CharacterController Overrides PhysicsComponent.constructor Defined in laya/d3/physics/CharacterController.ts:215 创建一个 CharacterController 实例。 Parameter...

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