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

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

1. 物理引擎-布 [ 100%]

...Stat; import WebGL = Laya.WebGL; import Render = Laya.Render; export class Physics_Cloth { private stageWidth: number = 800; private stageHeight: number = 600; private Matter: any = Browser.window.Matter; private LayaRender: any = Browser.window.LayaRender; private mouseConstraint: any; private engi...

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

2. laya.physics.Physics_API3.0 [ 96%]

... Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/Physics" Physics Class Physics 2D物理引擎,使用Box2d驱动 Hierarchy EventDispatcher Physics Index Constructors constructor Properties box2d positionIterations velocityIterations world PIXEL_RATIO Accessors all...

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

3. 官方 有物理世界的例子,如何销毁整个物理世界呢? [ 93%]

...例子,如何销毁整个物理世界呢? for (var currentBody = laya.physics.Physics.I.world.GetBodyList(); currentBody; currentBody = currentBody.GetNext()) { Laya.Physics.I._removeBody(currentBody) }虽然已经通过此代码销毁了所有的物题,然后删除这个scenc的时候还是...

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

4. laya.physics.Physics [ 93%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames PhysicsProperties | Methods Packagelaya.physicsClasspublic class PhysicsInheritancePhysics EventDispatcher Object 2D物理引擎,使用Box2d驱动 Public Properties PropertyDefined By  allowSleeping : Boolean 设置是...

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

5. worldroot [ 84%]

...root let root = new Laya.Sprite(); Laya.stage.addChildAt(root, 0);   Laya.Physics.I.worldRoot = root;   Laya.stage.on(Laya.Event.CLICK, this, () => { Laya.Physics.I.worldRoot.x -= 50; });   设置worldRoot = 一个新的sprite后, 移动world root ,物理世界不会跟着一起移动 2018...

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

6. 请问laya2.0 2d物理有射线检测功能吗 [ 77%]

...从起点到终点所有与射线接触的fixture // break var world=Laya.Physics.I.world world.RayCast(function(fixture,point,normal,fraction){ console.log("fixture",fixture) console.log("point",point) console.log("normal",normal) console.log("fraction",fraction) },{ x:300, y:100 },{ x:300, y:1000 ...

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

7. 请问如何加快2d物理的模拟速度(即实现快进功能) [ 73%]

...更新物理,达到快进的效果呢?   比如有办法手动调用Physics._update方法吗 另外还是建议把timestep以及其他的参数暴露出来让用户设置吧,毕竟用户可能有很多你们想不到的需求,谢谢! 2019-07-09 添加评论 免费帖 --> 分享 微博 QZO...

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

8. 关于Laya 2.0自带物理引擎的疑惑 [ 66%]

...ody和Collider的显示对象。   执行destroy(true)之后,查看Laya.Physics.I.world.bodyList,还是能看到它的Collider。并且舞台上也确实存在一个没有Rigibody的Collider在移动。   如果只是remove掉这个显示对象,物理世界中则不会存在它的Collider。...

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