大约有 28 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0024 秒)
物理引擎中更换刚体贴图的方法 this.ball = Matter.Bodies.circle(400, 600,34, { //密度 density: 1, //弹力 restitution:0.4, container:this.ballBox, render: { sprite: { texture: "comp/basketball.png", xOffset: 34, yOffset: 34, } } }); 我想通过代码随时更改这个刚体上的tex...
来源: Laya_社区 发布时间: 20180716
Matter和Sprite绑定后图片移位问题 代码: var ball_skin = new Laya.Sprite().loadImage("img/hero.png"); ball_skin.scale(50/120, 80/178); ball_skin.pivot(ball_skin.width / 2, ball_skin.height / 2); var ball = Matter.Bodies.rectangle(330, ...
来源: Laya_社区 发布时间: 20170721
请问物理引擎为什么设置body的透明度无效 1 在body的render属性下有个opacity属性,理论上应该是透明度,但是设置无效? 2 在body的render属性下有个sprite有个texture是设置纹理,但是在初始化后无法重置为其他图片纹理? 2018-06-11 添加评论 ...
来源: Laya_社区 发布时间: 20180611
API DocumentationAll Packages | All Classes | Index | Frames No Frames CircleColliderProperties | Methods Packagelaya.physicsClasspublic class CircleColliderInheritanceCircleCollider ColliderBase Component Object 2D圆形碰撞体 Public Properties Hide Inherited Public Properties Show Inhe...
来源: Laya2.0_api 发布时间: 20190513
API DocumentationAll Packages | All Classes | Index | Frames No Frames BoxColliderProperties | Methods Packagelaya.physicsClasspublic class BoxColliderInheritanceBoxCollider ColliderBase Component Object 2D矩形碰撞体 Public Properties Hide Inherited Public Properties Show Inherited Pub...
来源: Laya2.0_api 发布时间: 20190513
matter.js的文档查看 在引擎示例的投石射击中: render: { fillStyle: '#edc51e', strokeStyle: '#b5a91c' } render: { sprite: ...
来源: Laya_社区 发布时间: 20170102
Matter.js物理引擎:麻烦请教下matter.js创建一个刚体对象怎么创建 this.shamBallBody = Matter.Bodies.circle(700, 400, 28, { // x, y, 半径 density: 0.68, // 密度 restitution: 0.8, // 弹性 }); 请教下,如果是创建一个空的刚体对象怎么创建。 例如: var ...
来源: Laya_社区 发布时间: 20180401
API DocumentationAll Packages | All Classes | Index | Frames No Frames PolygonColliderProperties | Methods Packagelaya.physicsClasspublic class PolygonColliderInheritancePolygonCollider ColliderBase Component Object 2D多边形碰撞体,暂时不支持凹多边形,如果是凹多边形...
来源: Laya2.0_api 发布时间: 20190513
API DocumentationAll Packages | All Classes | Index | Frames No Frames ChainColliderProperties | Methods Packagelaya.physicsClasspublic class ChainColliderInheritanceChainCollider ColliderBase Component Object 2D线形碰撞体 Public Properties Hide Inherited Public Properties Show Inherit...
来源: Laya2.0_api 发布时间: 20190513
Layabox是免费开源的HTML5引擎解决方案,产品家族中包括LayaAir引擎、LayaFlash引擎、LayaOpen开放平台、LayaMarket SDK、LayaStore嵌入式游戏商店、LayaPlayer运行器。核心引擎LayaAir性能全球领先,支持2D、3D、VR开发,支持AS3、JavaScript、TypeScr...
来源: Laya_示例 发布时间: 20251209