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

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

31. laya.d3.math.Matrix4x4 [ 77%]

...destObject:*):void 克隆。 Matrix4x4  createAffineTransformation(trans:Vector3, rot:Quaternion, scale:Vector3, out:Matrix4x4):void[static] 计算仿射矩阵 Matrix4x4  createFromQuaternion(rotation:Quaternion, out:Matrix4x4):void[static] 从四元数计算旋转矩阵 Matrix4x4  createLookA...

来源: laya_api 发布时间: 20170929

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

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

33. laya.d3.math.Matrix4x4 [ 75%]

...ll) 创建一个 Matrix4x4 实例。 Matrix4x4  billboard(objectPosition:Vector3, cameraPosition:Vector3, cameraRight:Vector3, cameraUp:Vector3, cameraForward:Vector3, mat:Matrix4x4):void[static] 计算BlillBoard矩阵 Matrix4x4  clone():* 克隆。 Matrix4x4  cloneTo(destObject:*):void 克隆...

来源: Laya2.0_api 发布时间: 20190513

34. 3D变换 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...距离。 * @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

35. 射线检测-选取物体 [ 75%]

...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vecto...

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

36. laya.d3.math.Vector3 [ 74%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames Vector3Properties | Methods | Constants Packagelaya.d3.mathClasspublic class Vector3InheritanceVector3 ObjectImplements laya.d3.core.IClone Vector3 类用于创建三维向量。 Public Properties PropertyDefined By  el...

来源: laya_api 发布时间: 20170929

37. 高级应用-寻路导航 [ 74%]

...项目开发更高效。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

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

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

39. 有关Laya3D碰撞检测疑问 [ 73%]

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

40. LayaAir3D中的Transform变换(JavaScript-3D基础(JS)-LayaAir3D图形系统基础概念) [ 72%]

...转。 ```typescript //移动摄像机 camera.transform.translate(new Laya.Vector3(0, 3, 3)); //旋转摄像机 camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); ``` 关于旋转,在Transform3D中提供了两种旋转接口,一种是角度/弧度旋转`rotate`,还一种是欧...

来源: Laya2.0_文档 发布时间: 20210715