大约有 8 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0025 秒)
...engine: engine, width: 800, height: 600, options: { background: '../../res/physics/img/background.png', wireframes: false } }); LayaRender.run(render); mouseConstraint = Matter.MouseConstraint.create(engine, { constraint: { angularStiffness: 0.1, stiffness: 2 }, element: Render.canvas }); Matter.Wor...
来源: Laya_示例 发布时间: 20241125
...ToRay(point, ray); //射线检测获取所有检测碰撞到的物体 Laya.Physics.rayCast(ray, _outHitInfo, 30, 0); } (function loadUI() { var label = new Laya.Label(); label.text = "点击放置"; label.pos(Laya.Browser.clientWidth / 2.5, 100); label.fontSize = 50; label.color = "#40FF40"; Laya.st...
来源: Laya_示例 发布时间: 20241125
...ToRay(point, ray); //射线检测获取所有检测碰撞到的物体 Laya.Physics.rayCast(ray, _outHitInfo, 30, 0); } (function loadUI() { var label = new Laya.Label(); label.text = "点击放置"; label.pos(Laya.Browser.clientWidth / 2.5, 100); label.fontSize = 50; label.color = "#40FF40"; Laya.st...
来源: Laya_示例 发布时间: 20241125
...wser; import WebGL = Laya.WebGL; import Render = Laya.Render; export class Physics_NewtonsCradle { private stageWidth: number = 800; private stageHeight: number = 600; private Matter: any = Browser.window.Matter; private LayaRender: any = Browser.window.LayaRender; private mouseConstraint: any; priv...
来源: Laya_示例 发布时间: 20241125
...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_示例 发布时间: 20241125
...wBoxColliderScript); this.debug = false; } } } } new ColiderDemo();package physicsModule { import common.CameraMoveScript; import common.DrawBoxColliderScript; import laya.d3.component.Rigidbody; import laya.d3.component.physics.BoxCollider; import laya.d3.component.physics.MeshCollider; import laya...
来源: Laya_示例 发布时间: 20241125
...ndex = -1; else if (_scale ,最大检测距离30米,只检测第10层 Laya.Physics.rayCastAll(ray, _outHitAllInfo, 30, 10); for (var i = 0; i ,最大检测距离30米,只检测第13层 Laya.Physics.rayCast(ray, _outHitInfo, 30, 13); if (_outHitInfo.distance !== -1) { str = _outHitInfo.sprite3D.name;...
来源: Laya_示例 发布时间: 20241125
...ToRay(point, ray); //射线检测获取所有检测碰撞到的物体 Laya.Physics.rayCastAll(ray, _outHitAllInfo, 30, 0); } (function loadUI() { var label = new Laya.Label(); label.text = "点击选取的几何体"; label.pos(Laya.Browser.clientWidth / 2.5, 100); label.fontSize = 50; label.color = ...
来源: Laya_示例 发布时间: 20241125