大约有 460 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0086 秒)
Laya_社区(308) Laya3.0_api(57) Laya2.0_api(45) Laya2.0_文档(28) Laya_示例(8) Laya2.0_示例(5) laya_api(5) Laya3.0_文档(4)
...ine: engine, width: 640, height: 480, options: { // background: '../../res/physics/img/background.png', wireframes: false//true// } }); // create two boxes and a ground var boxA = Bodies.rectangle(400, 200, 80, 80); var boxB = Bodies.rectangle(450, 50, 80, 80); var ground = Bodies.rectangle(400, 610...
来源: Laya_社区 发布时间: 20170905
...Manager.instance.mouseX,Laya.MouseManager.instance.mouseY),this.ray); Laya.Physics.rayCast(this.ray,this.hit); console.log("当前射线碰撞的信息是:" + this.hit.sprite3D.name); //摄像机位置 var position:Laya.Vector3=new Laya.Vector3(this.camera.position.x, 0, this.camera.position.z); //...
来源: Laya_社区 发布时间: 20181020
...ToRay(this.point, this.ray); //11111111111111就是下面这句报错 Laya.Physics.rayCast(this.ray, this._outHitInfo, Number.MAX_VALUE, 10); if (this._outHitInfo.sprite3D.name === "tlj"){ isRotate = !isRotate; } // this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, state); // //绘出射线 // thi...
来源: Laya_社区 发布时间: 20170323
...Transform的Scale导致的,可以修改laya.d3.js文件里的_innerDerivePhysicsTransformation方法,加粗部分为补丁: if (shapeOffset.x !== 0 || shapeOffset.y !== 0 || shapeOffset.z !== 0) { var physicPosition = PhysicsComponent._tempVector30; ...
来源: Laya_社区 发布时间: 20191019
...项目 2、文件-项目设置-类库设置,勾选物理引擎库laya.physics3D.js 3、使用工具构建一个Native工程 4、使用Android Studio打开工程,把目标API改成30 5、编译运行在Android 11系统的手机上 5、游戏启动时闪退 下面的Crash可做参...
来源: Laya_社区 发布时间: 20210830
... this.ray.origin = rayOrigin; //物理射线与碰撞器相交检测 Laya.Physics.rayCast(this.ray,this.outHitInfo,5); //------------------------------------------------TODO_WPP 碰撞器生成有问题?? 应该是outHitInfo.distance -1 这个问题 // //如果未有碰撞则返回 // if(this.ou...
来源: Laya_社区 发布时间: 20171113
...ew Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function (tex) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 var tilingOffset = planeMat.tilingOffset; ti...
来源: Laya_社区 发布时间: 20210103
...oint, this.ray); //射线检测获取所有检测碰撞到的物体 Laya.Physics.rayCastAll(this.ray, this._outHitAllInfo, 30, 0); } private loadUI(): void { this.label = new Laya.Label(); this.label.text = "点击选取的几何体"; this.label.pos(Laya.Browser.clientWidth / 2.5, 100); this.l...
来源: Laya_社区 发布时间: 20180820
...blic/Protected All Inherited Externals Only exported Menu Globals "laya/d3/physicsCannon/CannonRigidbody3D" CannonRigidbody3D Class CannonRigidbody3D Rigidbody3D 类用于创建刚体碰撞器。 Hierarchy CannonPhysicsCollider CannonRigidbody3D Index Constructors constructor Properties _extra _sing...
来源: Laya3.0_api 发布时间: 20231102
...加速度,开发者也可以在代码中设置,示例代码如下: Physics2D.I.gravity= new Vector2(0,9.8) 2.3.3 重力缩放系数 gravity Scale 除了全局的重力加速度参数设置外,刚体的重力缩放系数属性,是用于独立影响单个动态刚体重力效果的参数。 ...
来源: Laya3.0_文档 发布时间: 20240528