大约有 4 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0013 秒)
...更新方位指示器 directionIndicator.x = -1 * Math.floor(info.gamma) / 90 * 70 + compassImg.x; directionIndicator.y = -1 * Math.floor(info.beta) / 90 * 70 + compassImg.y; } })() module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Gyroscope = Laya...
来源: Laya_示例 发布时间: 20251130
...00, 156, 0], "#ff0000", 5); //画矩形 sp.graphics.drawRect(10, 166, 166, 90, "#ffff00"); //画多边形 sp.graphics.drawPoly(264, 166, [0, 0, 60, 0, 78.48, 57, 30, 93.48, -18.48, 57], "#ffff00"); //画三角形 sp.graphics.drawPoly(400, 166, [0, 100, 50, 0, 100, 100], "#ffff00"); //画圆 sp.graph...
来源: Laya_示例 发布时间: 20251130
...ransform.position = _position; sphere.transform.rotate(new Laya.Vector3(0, 90, 0), false, false); } }); })();class RayPicking02 { 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 _outHitInfo: Laya.Ra...
来源: Laya_示例 发布时间: 20251130
... Laya.Vector3(0.5, 0.25, 0.5); sphere.transform.rotate(new Laya.Vector3(0, 90, 0), false, false); var sphereCollider = sphere.addComponent(Laya.SphereCollider); sphereCollider.center = sphere.meshFilter.sharedMesh.boundingSphere.center.clone(); sphereCollider.radius = sphere.meshFilter.sharedMesh.bo...
来源: Laya_示例 发布时间: 20251130