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

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

91. laya.maths.Point [ 87%]

... | Frames No Frames PointProperties | Methods | Constants Packagelaya.mathsClasspublic class PointInheritancePoint Object Point 对象表示二维坐标系统中的某个位置,其中 x 表示水平轴,y 表示垂直轴。 Public Properties PropertyDefined By  x : Number该点的水平...

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

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

...ndex | Frames No Frames BoundSphereProperties | Methods Packagelaya.d3.mathClasspublic class BoundSphereInheritanceBoundSphere ObjectImplements laya.d3.core.IClone BoundSphere 类用于创建包围球。 Public Properties PropertyDefined By  center : Vector3包围球的中心。BoundSphere ...

来源: laya_api 发布时间: 20170929

93. 关于Laya.Quaternion.createFromAxisAngle旋转角度不正确的问题 [ 86%]

...ernion();         Laya.Quaternion.createFromAxisAngle(normal,angle*Math.PI/180,Q)                  var newdir1=new Laya.Vector3()         Laya.Vector3.transformQuat(dir1,Q,newdir1)         Laya.Vector3.normalize(newdir1,newdir1)          Laya.Quaterni...

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

94. laya.d3.math.BoundSphere [ 86%]

...ndex | Frames No Frames BoundSphereProperties | Methods Packagelaya.d3.mathClasspublic class BoundSphereInheritanceBoundSphere ObjectImplements laya.d3.core.IClone BoundSphere 类用于创建包围球。 Public Properties PropertyDefined By  center : Vector3包围球的中心。BoundSphere ...

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

95. laya.d3.math.Viewport [ 86%]

... Index | Frames No Frames ViewportProperties | Methods Packagelaya.d3.mathClasspublic class ViewportInheritanceViewport Object Viewport 类用于创建视口。 Public Properties PropertyDefined By  height : Number高度Viewport  maxDepth : Number最大深度Viewport  minDepth : Number...

来源: laya_api 发布时间: 20170929

96. 如何启用摇一摇 [ 86%]

..._('y = acceleration.y'); __JS__('z = acceleration.z'); __JS__('var speed = Math.abs(x + y + z - last_x - last_y - last_z) / diffTime * 600'); __JS__('if (speed > SHAKE_THRESHOLD)_model.sendMoney = speed;//将得到的摇晃速度发送到 _model}}'); } } }    最后layabox会转换成如下  ...

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

97. laya.d3.math.Color [ 86%]

... Frames No Frames ColorProperties | Methods | Constants Packagelaya.d3.mathClasspublic class ColorInheritanceColor ObjectImplements laya.d3.core.IClone Color 类用于创建颜色实例。 Public Properties PropertyDefined By  a : Numberalpha分量Color  b : Numberblue分量Color  g : Num...

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

98. 怎么计算两个点之间的距离 [ 86%]

...y:int = p1.y = p2.y;              var length:Number = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));              trace(length);  2017-05-11 1 0 分享 微博 QZONE 微信 ippon 赞同来自: var point = new laya.maths.Point(100,100); var distance = point.distance(200,200)...

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

99. 路径显示会添加DrawCall,每增加一条路径都会添加,有什么办法降DrawCall [ 86%]

...ackage { import laya.display.Node; import laya.display.Sprite; import laya.maths.Rectangle; import laya.ui.Dialog; import laya.ui.Image; import laya.utils.Handler; import ui.TestDialogUI; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private va...

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

100. laya.d3.math.BoundBox [ 86%]

... Index | Frames No Frames BoundBoxProperties | Methods Packagelaya.d3.mathClasspublic class BoundBoxInheritanceBoundBox ObjectImplements laya.d3.core.IClone BoundBox 类用于创建包围盒。 Public Properties PropertyDefined By  max : Vector3最大顶点。BoundBox  min : Vector3最小...

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