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

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

41. Laya.Quaternion.lerp和Laya.Quaternion.rotationLookAt问题! [ 81%]

Laya.Quaternion.lerp和Laya.Quaternion.rotationLookAt问题! 图1想实现图2的效果,蓝球跟随红球旋转 在这里卡住了: Laya.Quaternion.lerp(left四元数,right四元数b,插值比例,输出四元数) Laya.Quaternion.rotationLookAt(方向,上向量,输出四元数) 里...

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

42. laya.d3.physics.shape.HeightfieldTerrainShape_API3.0 [ 81%]

... Parameters value: Vector3 Returns void localRotation get localRotation(): Quaternion set localRotation(value: Quaternion): void Inherited from CompoundColliderShape.localRotation Defined in laya/d3/physics/shape/ColliderShape.ts:140 Shape的本地旋转。 Returns Quaternion Inherited from Compound...

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

43. laya.d3.physicscannon.shape.CannonBoxColliderShape_API3.0 [ 80%]

... Parameters value: Vector3 Returns void localRotation get localRotation(): Quaternion set localRotation(value: Quaternion): void Inherited from CannonColliderShape.localRotation Defined in laya/d3/physicsCannon/shape/CannonColliderShape.ts:130 Shape的本地旋转。 Returns Quaternion Inherited fro...

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

44. 3D灯光阴影无效 [ 79%]

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

45. 3D中摄像机绕物体旋转该如何实现? [ 79%]

...nsform3D = 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 = new Laya.Vector3(-32, -75, 0); camera....

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

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

...nsform3D = 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 = new Laya.Vector3(-32, -75, 0); camera....

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

47. laya.d3.physics.shape.SphereColliderShape_API3.0 [ 79%]

... Parameters value: Vector3 Returns void localRotation get localRotation(): Quaternion set localRotation(value: Quaternion): void Inherited from CompoundColliderShape.localRotation Defined in laya/d3/physics/shape/ColliderShape.ts:140 Shape的本地旋转。 Returns Quaternion Inherited from Compound...

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

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

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

49. laya.d3.physics.shape.MeshColliderShape_API3.0 [ 78%]

... Parameters value: Vector3 Returns void localRotation get localRotation(): Quaternion set localRotation(value: Quaternion): void Inherited from CompoundColliderShape.localRotation Defined in laya/d3/physics/shape/ColliderShape.ts:140 Shape的本地旋转。 Returns Quaternion Inherited from Compound...

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

50. 自定义shader-简单shader [ 78%]

... 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_示例 发布时间: 20251130