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

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

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

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

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

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

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

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

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

64. 摄像机设置旋转的问题 [ 68%]

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

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

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

66. 自定义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

67. laya.d3.shader.ShaderData_API3.0 [ 67%]

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

68. 正交摄像机裁剪问题 [ 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

69. 设置transform.localRotation之后,就不能再使用transform.rotate了 [ 66%]

...3(10, 0, 0), true); //这里会有效 ele.transform.localRotation=new Laya.Quaternion(0, 0,0,0); //这里也还是有效的 ele.transform.rotate(new Laya.Vector3(30, 0, 0), true); //这里就无效了,从此以后的对ele的rotate全部无效了 2017-03-23 添加评论 免费帖 --> 分享 微博...

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

70. laya.d3.physics.RaycastWheel_API3.0 [ 66%]

...ector3() Defined in laya/d3/physics/RaycastWheel.ts:9 worldQuat worldQuat: Quaternion = new Quaternion() Defined in laya/d3/physics/RaycastWheel.ts:10 Accessors brake get brake(): number set brake(v: number): void Defined in laya/d3/physics/RaycastWheel.ts:42 Returns number Defined in laya/d3/physic...

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