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

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

61. 高级应用-寻路导航 [ 72%]

...a.Vector3(0, 0, 0); this._finalPosition = new Laya.Vector3(0, 0, 0); this._quaternion = new Laya.Quaternion(); this.index = 0; this.curPathIndex = 0; this.nextPathIndex = 1; this.pointCount = 10; Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat....

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

62. 如何旋转模型的z轴到指定的向量的方向 [ 72%]

...的方向 如题,想让模型面朝指定向量的方向,用的 Laya.Quaternion.rotationLookAt() 的方法,但是并没有达到预期效果 这个方法的参数 up 指定的是世界坐标的 up 方向?还是基于 forward 的 up 方向? 附件 : --> quaternion_demo.zip 2020-08-11 添加...

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

63. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 71%]

...).getChildByName("MoveBlockPivot") as Laya.Sprite3D; let newRot = new Laya.Quaternion(0, 0, 0, 0); Laya.Quaternion.createFromYawPitchRoll(0, 0* (Math.PI / 180), 0, newRot); this.pivot.transform.rotation = newRot; .............................................. if (e.keyCode == 97) { // console.log("a...

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

64. 关于平行光渲染投影问题,求解惑 [ 70%]

..._Aaron 赞同来自: a503807636 // 程序入口 class LayaAir3D { private _quaternion: Laya.Quaternion = new Laya.Quaternion(); constructor() { //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; let ...

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

65. 3D灯光阴影无效 [ 68%]

...sform.position = new Vector3(0, 0, -1); QiPanMesh.transform.rotation = new Quaternion(-1, 0, 0, 1); QiPanMesh.layer = Layer.getLayerByNumber(5); QiPanMesh.meshRender.castShadow = true; QiPanMesh.meshRender.receiveShadow = true; scene.addChild(QiPanMesh); var gTitleMesh:MeshSprite3D = new MeshSprite3...

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

66. 摄像机设置旋转的问题 [ 67%]

...机节点,然后马上设置这个节点的旋转,如果我使用Laya.Quaternion.cloneTo(camera.transform.localRotation),会失败,如果使用camera.transform.localPosition = Laya.Quaternion.clone(),才会成功,之前我记得你们不是说过尽量避免创建对象吗?直接用clone...

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

67. laya.d3.core.QuaternionKeyframe_API3.0 [ 67%]

...Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/QuaternionKeyframe" QuaternionKeyframe Class QuaternionKeyframe QuaternionKeyframe 类用于创建四元数关键帧实例。 Hierarchy Keyframe QuaternionKeyframe Implements IClone Index Constructors constructor Properties i...

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

68. 自定义shader-简单shader [ 67%]

... new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); var customMaterial = new CustomMaterial(); layaMonkey.meshRender.sharedMaterial = customMaterial; var rotation = new Laya.Vector3(0, 0.01, 0); Laya.timer.frameLoop(1, this, function ()...

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

69. laya.d3.shader.ShaderData_API3.0 [ 66%]

...Bool getBuffer getDataForNative getInt getLength getMatrix4x4 getNumber getQuaternion getTexture getValueData getVector getVector2 getVector3 hasDefine needRenewArrayBufferForNative removeDefine setAttribute setBool setBuffer setInt setLength setMatrix4x4 setNumber setQuaternion setReferenceForNativ...

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

70. 正交摄像机裁剪问题 [ 66%]

....transform.translate(new Laya.Vector3(250, 1, 0)); var rotation = new Laya.Quaternion; Laya.Quaternion.lookAt(camera.position, new Laya.Vector3(0, 0, 0), camera.up, rotation); camera.transform.rotation = rotation; camera.clearColor = new Laya.Vector4(1, 1, 1, 1); camera.orthographicProjection = true...

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