大约有 11 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0028 秒)
...属性和api请参考 http://box2d.org Physics gravity : Object 物理世界重力环境,默认值为{x:0,y:1} 如果修改y方向重力方向向上,可以直接设置gravity.y=-1; Physics I : Physics[static] [read-only] 全局物理单例Physics PIXEL_RATIO : int = 50[static] 2D游戏...
来源: Laya2.0_api 发布时间: 20190513
...D[read-only] 获取所属精灵。 Transform3D position : Vector3 获取世界位置。 Transform3D rotation : Quaternion 获取世界旋转。 Transform3D rotationEuler : Vector3 获取世界空间的旋转角度。 Transform3D scale : Vector3 获取世界缩放。 Transform3D worldM...
来源: Laya2.0_api 发布时间: 20190513
...ean 派发事件。 EventDispatcher getWorldMatrix():Float32Array 获取世界矩阵。 AnimationTransform3D hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 EventDispatcher isMouseEvent(type:String):Boolean 检测指定事件...
来源: Laya2.0_api 发布时间: 20190513
...eRigidBody Component Object 2D刚体,显示对象通过RigidBody和物理世界进行绑定,保持物理和显示对象之间的位置同步 物理世界的位置变化会自动同步到显示对象,显示对象本身的位移,旋转(父对象位移无效)也会自动同步到物理世...
来源: Laya2.0_api 发布时间: 20190513
... Parameters shape:ColliderShape — 形状。 fromPosition:Vector3 — 世界空间起始位置。 toPosition:Vector3 — 世界空间结束位置。 out:HitResult (default = null) — 碰撞结果。 fromRotation:Quaternion (default = null) — 起始旋转。 toRotation:Quaternion (defau...
来源: Laya2.0_api 发布时间: 20190513
...orldToNormalizedViewportPoint(position:Vector3, out:Vector3):void 计算从世界空间准换三维坐标到裁切空间。 Camera worldToViewportPoint(position:Vector3, out:Vector3):void 计算从世界空间准换三维坐标到屏幕空间。 CameraProtected Methods Show Inherited Protected Me...
来源: Laya2.0_api 发布时间: 20190513
...点。 worldPositionStays:Boolean (default = true) — 是否保持自身世界变换。 position:Vector3 (default = null) — 世界位置,worldPositionStays为false时生效。 rotation:Quaternion (default = null) — 世界旋转,worldPositionStays为false时生效。 ReturnsSprite3D — ...
来源: Laya2.0_api 发布时间: 20190513
...矩阵。 viewMatrix:Matrix4x4 — 视图矩阵。 world:Matrix4x4 — 世界偏移矩阵。 out:RayrayIntersectsTriangle()method public static function rayIntersectsTriangle(ray:Ray, vertex1:Vector3, vertex2:Vector3, vertex3:Vector3):Number 计算射线和三角形碰撞并返回碰撞距...
来源: Laya2.0_api 发布时间: 20190513
...投影矩阵。 view:Matrix4x4 — 视图矩阵。 world:Matrix4x4 — 世界矩阵,可设置为null。 out:Vector3 — 输出向量。 Mon May 13 2019, 02:40 PM +08:00
来源: Laya2.0_api 发布时间: 20190513
...时触发。Event TRANSFORM_CHANGED : String = transformchanged[static] 世界矩阵更新时触发。Event TRIGGER_ENTER : String = triggerenter[static] 物理碰撞开始Event TRIGGER_EXIT : String = triggerexit[static] 物理碰撞结束Event TRIGGER_STAY : String = triggerstay[static...
来源: Laya2.0_api 发布时间: 20190513