大约有 428 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0041 秒)
Laya_社区(163) Laya3.0_api(79) Laya2.0_api(73) Laya2.0_文档(58) Laya_示例(28) laya_api(14) Laya3.0_文档(8) Laya2.0_示例(5)
...ew Laya.Vector3((Math.random() - 0.5) * 2, 10, 17); //添加刚体 ball.addComponent(Laya.PhysicsCollider); let ballrigid: Laya.Rigidbody3D = ball.addComponent(Laya.Rigidbody3D); ballrigid.colliderShape = new Laya.SphereColliderShape(1); ballrigid.friction = 1; ballrigid.mass = Math.random() * 20...
来源: Laya_社区 发布时间: 20190506
...(new Laya.Vector3(0, 5, 0)); var boxRigidBody_1 : Laya.Rigidbody3D = box_1.addComponent(Laya.Rigidbody3D); var boxShape_1 : Laya.BoxColliderShape = new Laya.BoxColliderShape(1, 1, 1); boxRigidBody_1.colliderShape = boxShape_1; boxRigidBody_1.mass = 10; var box_2 : Laya.MeshSprite3D = this.scene.addC...
来源: Laya_社区 发布时间: 20190602
...eMesh.createBox(sX, sY, sZ))); //创建刚体碰撞器 var rigidBody = box.addComponent(Laya.Rigidbody3D); //创建盒子形状碰撞器 var boxShape = new Laya.BoxColliderShape(sX, sY, sZ); //设置盒子的碰撞形状 rigidBody.colliderShape = boxShape; //设置刚体的质量 rigidBody.mass = 10...
来源: Laya2.0_文档 发布时间: 20210715
...D, this, function () { var camera = scene.getChildByName("Camera"); camera.addComponent(CameraMoveScript); });class PBRDemo { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene...
来源: Laya_示例 发布时间: 20241119
...0.1, 100)) ; camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript);class Particle_Scene { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Sc...
来源: Laya_示例 发布时间: 20241119
...) as MeshSprite3D; //创建刚体碰撞器 var rigidBody:Rigidbody3D = box.addComponent(Rigidbody3D); //创建盒子形状碰撞器 var boxShape:BoxColliderShape = new BoxColliderShape(sX, sY, sZ); //设置盒子的碰撞形状 rigidBody.colliderShape = boxShape; //设置刚体的质量 rigidBody.ma...
来源: Laya2.0_文档 发布时间: 20210714
...); let rigidbody = new Laya.RigidBody(); rigidbody.type = "static"; ground.addComponentIntance(rigidbody); let chainCollider = ground.addComponent(Laya.ChainCollider); chainCollider.points = "50,200,50,570,1050,570,1050,200"; for (let i = 1; i 0) { legCollider1.points = p1.concat(p2).concat(p3).join...
来源: Laya2.0_示例 发布时间: 20241119
...MeshSprite3D; //创建刚体碰撞器 var rigidBody:Laya.Rigidbody3D = box.addComponent(Laya.Rigidbody3D); //创建盒子形状碰撞器 var boxShape:Laya.BoxColliderShape = new Laya.BoxColliderShape(sX, sY, sZ); //设置盒子的碰撞形状 rigidBody.colliderShape = boxShape; //设置刚体的质...
来源: Laya2.0_文档 发布时间: 20210714
...e = this.view.m_plane.displayObject let planecoll = this.plane.addComponent(Laya.BoxCollider) let chacoll = this.character.addComponent(Laya.BoxCollider) planecoll.x = 0; planecoll.y = 0; planecoll.width = 2775 planecoll.height ...
来源: Laya_社区 发布时间: 20221207
...m.position = pos; //创建刚体碰撞器 var rigidBody: Rigidbody3D = box.addComponent(Rigidbody3D); //创建盒子形状碰撞器 var boxShape: BoxColliderShape = new BoxColliderShape(1, 1, 1); //设置盒子的碰撞形状 rigidBody.colliderShape = boxShape; //设置刚体的质量 rigidBody.mass...
来源: Laya2.0_文档 发布时间: 20210715