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

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

21. laya.d3.math.BoundSphere_API3.0 [ 89%]

...ors center radius Methods clone cloneTo intersectsRayDistance intersectsRayPoint toDefault createFromSubPoints createfromPoints Constructors constructor new BoundSphere(center?: Vector3, radius?: number): BoundSphere Defined in laya/d3/math/BoundSphere.ts:30 创建一个 BoundSphere 实例。 Parame...

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

22. 求一个三角旋转的算法代码。 [ 88%]

...a_Aaron 赞同来自: sheen 硬算代码: vector3d为旋转轴ac轴,  point3d为B点, 返回结果为D点  PointRoundVector( vector3d: Vector3, point3d: Vector3 ,  Aplha: number ): Vector3{                  let u:number = point3d.x;        let v:number = point3d.y;        l...

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

23. 加载TiledMap 不显示 [ 88%]

...t MapLayer = Laya.MapLayer; import TiledMap = Laya.TiledMap; import Point = Laya.Point; import Rectangle = Laya.Rectangle; import Handler = Laya.Handler; import WebGL = Laya.WebGL;  export class TiledMap_IsometricWorld {     private tiledMap: TiledMap;     private lay...

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

24. laya.d3.math.BoundSphere [ 87%]

...undSphere  cloneTo(destObject:*):void 克隆。 BoundSphere  createfromPoints(points:Array, out:BoundSphere):void[static] 从顶点队列生成包围球。 BoundSphere  createFromSubPoints(points:Array, start:int, count:int, out:BoundSphere):void[static] 从顶点的子队列生成包围球。...

来源: laya_api 发布时间: 20170929

25. laya.d3.math.BoundSphere [ 87%]

...undSphere  cloneTo(destObject:*):void 克隆。 BoundSphere  createfromPoints(points:Vector.<Vector3>, out:BoundSphere):void[static] 从顶点队列生成包围球。 BoundSphere  createFromSubPoints(points:Vector.<Vector3>, start:int, count:int, out:BoundSphere):void[static] 从...

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

26. 画出来鼠标轨迹线 [ 86%]

... Laya.init(1920,1080); Laya.stage.scaleMode=Laya.Stage.SCALE_SHOWALL; var point=[];//声明一个集合,用于记录鼠标的位置 var img1=new Laya.Sprite();//声明第一个老婆 var img2=new Laya.Sprite();//声明第二个老婆 var lines=new Laya.Sprite();//声明全彩老婆的遮罩层 var...

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

27. 射线检测-放置物体 [ 86%]

... = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _outHitInfo = new Laya.RaycastHit(); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mo...

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

28. 2D物理-仿生机器人 [ 84%]

...let chainCollider = ground.addComponent(Laya.ChainCollider); chainCollider.points = "50,200,50,570,1050,570,1050,200"; for (let i = 1; i 0) { legCollider1.points = p1.concat(p2).concat(p3).join(","); legCollider2.points = [0, 0].concat(B2Math.SubVV(p5, p4)).concat(B2Math.SubVV(p6, p4)).join(","); } ...

来源: Laya2.0_示例 发布时间: 20240930

29. laya.d3.math.BoundBox [ 83%]

...。 BoundBox  cloneTo(destObject:*):void 克隆。 BoundBox  createfromPoints(points:Array, out:BoundBox):void[static] 从顶点生成包围盒。 BoundBox  getCorners(corners:Array):void 获取包围盒的8个角顶点。 BoundBox  merge(box1:BoundBox, box2:BoundBox, out:BoundBox):void[stat...

来源: laya_api 发布时间: 20170929

30. 请问这是原因? [ 82%]

...s; import laya.display.Sprite; import laya.events.Event; import laya.maths.Point; import laya.utils.Browser; import laya.webgl.WebGL; import laya.wx.mini.MiniAdpter; public class LayaSample { public var sprite:Sprite = new Sprite(); public function LayaSample() { //初始化引擎 MiniAdpter.init();...

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