大约有 20 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0061 秒)
...w Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.point = new Laya.Vector2(); this._outHitInfo = new Laya.RaycastHit(); this.phasorSpriter3D = new Laya.PhasorSpriter3D(); this.camera = this.addChild(new Laya.Camera(0, 0.1, 100)); this.camera.transform.translate(new Laya.Vector3(0, 1, 3)); //...
来源: Laya_社区 发布时间: 20170323
...位置位置。 * @param out 输出射线。 */ viewportPointToRay(point: Vector2, out: Ray): void { this._rayViewport.x = this.viewport.x; this._rayViewport.y = this.viewport.y; this._rayViewport.width = ILaya.stage._width; this._rayViewport.height = ILaya.stage._height; Picker.calculateCursorRay(p...
来源: Laya3.0_文档 发布时间: 20241014
...7 分辨率比例 Parameters value: number Returns void scale get scale(): Vector2 set scale(value: Vector2): void Defined in laya/d3/core/UI3D/UI3D.ts:124 UI3DmeshScale Returns Vector2 Defined in laya/d3/core/UI3D/UI3D.ts:115 UI3DmeshScale Parameters value: Vector2 Returns void sharedMaterial get s...
来源: Laya3.0_api 发布时间: 20231115
...ew Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _corners = new Array(); _corners[0] = new Laya.Vector3(); _corners[1] = new Laya.Vector3(); _corners[2] = new Laya.Vector3(); _corners[3] = new Laya.Vector3(); _corners[4] = new Laya.Vector3(); _corners[5] = ne...
来源: Laya_示例 发布时间: 20241117
...w Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.point = new Laya.Vector2(); this._outHitInfo = new Laya.RaycastHit(); // this.phasorSpriter3D = new Laya.PhasorSpriter3D(); } MousePickingScene.prototype.lateRender = function (state) { MousePickingScene.__super.prototype.lateRender.call(stat...
来源: Laya_社区 发布时间: 20170323
...可以在代码中设置,示例代码如下: Physics2D.I.gravity= new Vector2(0,9.8) 2.3.3 重力缩放系数 gravity Scale 除了全局的重力加速度参数设置外,刚体的重力缩放系数属性,是用于独立影响单个动态刚体重力效果的参数。 该值乘以重力值,...
来源: Laya3.0_文档 发布时间: 20241014
...* ……省略若干代码 */ //创建一个屏幕点 let point = new Laya.Vector2(); //创建一个射线 Laya.Ray(射线的起点,射线的方向) let ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); //以鼠标点击的点作为原点 point.x = Laya.stage.mouseX; point....
来源: Laya3.0_文档 发布时间: 20241014
...s boolean normalizedViewportPointToRay normalizedViewportPointToRay(point: Vector2, out: Ray): void Defined in laya/d3/core/Camera.ts:1302 计算从裁切空间生成的射线。 Parameters point: Vector2 裁切空间的位置。 out: Ray 输出射线。 Returns void off off(type: string, listener: ...
来源: Laya3.0_api 发布时间: 20231115
...s boolean normalizedViewportPointToRay normalizedViewportPointToRay(point: Vector2, out: Ray): void Inherited from Camera.normalizedViewportPointToRay Defined in laya/d3/core/Camera.ts:1302 计算从裁切空间生成的射线。 Parameters point: Vector2 裁切空间的位置。 out: Ray 输出射...
来源: Laya3.0_api 发布时间: 20231115
...* ……省略若干代码 */ //创建一个屏幕点 let point = new Laya.Vector2(); //创建一个射线 Laya.Ray(射线的起点,射线的方向) let ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); //以鼠标点击的点作为原点 point.x = Laya.stage.mouseX; point....
来源: Laya2.0_文档 发布时间: 20210715