大约有 79 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0044 秒)
...of undefined at Rigidbody3D._onAdded (libs/laya.d3.js:4824) at MeshSprite3D._addComponentInstance (libs/laya.core.js:13911) at MeshSprite3D.addComponent (libs/laya.core.js:13958) at Function._createComponentInstance (libs/laya.d3.js:30948) at Function._createComponentIn...
来源: Laya_社区 发布时间: 20201204
...bullet.lm", Laya.Handler.create(this, function (m) { let bullet = new Laya.MeshSprite3D(m); this.Sn.addChild(bullet); bullet.addComponent(BulletScript); var bulletCollider = bullet.addComponent(Laya.PhysicsCollider); var bulletShape = new Laya.MeshColliderShape(); bulletShape.mesh = bullet.meshFilte...
来源: Laya_社区 发布时间: 20190308
...Child(new Laya.Sprite3D()); var skinMesh0 = rootSkinMesh.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("3d/LayaScene_/Library/unity default resources-Cube.lm"))); var skinMesh1 = rootSkinMesh.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("3d/LayaScene_/Library/unity default resources-Sphere.lm"))); ...
来源: Laya_社区 发布时间: 20170223
....animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.resource.models.Mesh; import laya.d3.shader.ShaderCompile3D; import laya.display.Stage; impo...
来源: Laya_示例 发布时间: 20250220
...ya.Sprite3D()); this.cube = this.cubeP.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); let rigidbody = this.cube.addComponent(Laya.Rigidbody3D); rigidbody.mass = 0.01; rigidbody.overrideGravity = true; ...
来源: Laya_社区 发布时间: 20200223
...置小球的线速度,在小球的脚本的onUpdate里不断获取小球MeshSprite3D坐标,为摄像机设置坐标,现在问题是摄像机跟随小球运动的同时,小球出现抖动问题。 有尝试过尝试插值但是还是会抖动,并且线速度设置越大,抖动越厉害...
来源: Laya_社区 发布时间: 20190528
...rectionLight.transform.worldMatrix = mat; //正方体 let box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1)); scene.addChild(box); box.transform.position = new Laya.Vector3(0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); const rigidBody = box.addCom...
来源: Laya_社区 发布时间: 20200915
....Sprite3D()); //添加自定义模型 var box = sprite3D.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))); box.transform.position = new Laya.Vector3(0, 0.5, 0); var material = new Laya.StandardMaterial(); //降低反射率,加强反射贴图反射 material.albedo = new Laya.Vector4(0.8, ...
来源: Laya_社区 发布时间: 20180103
...器的方式: ```typescript /* ……省略若干代码 */ //创建盒型MeshSprite3D let box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))) as Laya.MeshSprite3D; //创建静态碰撞器 let staticCollider:Laya.PhysicsCollider = box.addComponent(Laya.PhysicsColli...
来源: Laya2.0_文档 发布时间: 20210715
.../添加自定义模型 // //创建模型显示对象 var sphere3D=new Laya.MeshSprite3D(new Laya.SphereMesh(1, 32, 32)); sphere3D.transform.translate(new Laya.Vector3(0,1,-5)); var box = scene.addChild(sphere3D); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); // var material = new L...
来源: Laya_社区 发布时间: 20180717