大约有 36 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0033 秒)
...h.createBox(0.5, 0.5, 0.5); var capsule:Mesh = PrimitiveMesh.createCapsule(0.25, 1, 10, 20); var cylinder:Mesh = PrimitiveMesh.createCylinder(0.25, 1, 20); var cone:Mesh = PrimitiveMesh.createCone(0.25, 0.75); var index:int = 0; //.............按钮点击事件 监听 changeMeshButton.on(Event.CLIC...
来源: Laya2.0_文档 发布时间: 20210714
..., 0)); var point = new Laya.Vector2(); var _position = new Laya.Vector3(0, 0.25, 0); var _quaternion = new Laya.Quaternion(); var _outHitInfo = new Laya.RaycastHit(); function checkHit() { box.transform.position = _position; box.transform.rotation = _quaternion; //从屏幕空间生成射线 point.e...
来源: Laya_示例 发布时间: 20251209
...r _position = new Laya.Vector3(0, 0, 0); var _offset = new Laya.Vector3(0, 0.25, 0); //鼠标事件 Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { if (_outHitInfo.distance !== -1) { var sphere = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh(0.25, 16, 16))); var mat = new Laya.Stan...
来源: Laya_示例 发布时间: 20251209
...ya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh(0.25))) as Laya.MeshSprite3D; var sphereMat: Laya.StandardMaterial = new Laya.StandardMaterial(); sphereMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); sphere.meshRender.material = sphere...
来源: Laya_社区 发布时间: 20180820
...2) ```typescript //随机生成坐标值 var sX = Math.random() * 0.75 + 0.25; var sY = Math.random() * 0.75 + 0.25; var sZ = Math.random() * 0.75 + 0.25; //创建盒型MeshSprite3D var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))); //创建刚体碰撞器 var...
来源: Laya2.0_文档 发布时间: 20210715
... ```typescript //随机生成坐标值 var sX:int = Math.random() * 0.75 + 0.25; var sY:int = Math.random() * 0.75 + 0.25; var sZ:int = Math.random() * 0.75 + 0.25; //创建盒型MeshSprite3D var box:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(sX, sY, sZ))) as MeshSprite3D...
来源: Laya2.0_文档 发布时间: 20210714
...`typescript //随机生成坐标值 var sX:number = Math.random() * 0.75 + 0.25; var sY:number = Math.random() * 0.75 + 0.25; var sZ:number = Math.random() * 0.75 + 0.25; //创建盒型MeshSprite3D var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))) as Laya.Mesh...
来源: Laya2.0_文档 发布时间: 20210714
...十层 var dhBox = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(0.25, 0.05, 0.4))); var dhBoxMat = new Laya.StandardMaterial(); dhBox.meshRender.material = dhBoxMat; dhBox.transform.position = new Laya.Vector3(0.32, 2.13, 34.1); dhBox.transform.rotate(new Laya.Vector3(0, 0, 0), false, false...
来源: Laya_社区 发布时间: 20180409
...小不一样,controller半径是0.5高是2,但Capsule网格半径只有0.25高是1 2024-07-03 0 2 分享 微博 QZONE 微信 球块 赞同来自: 截图 2024-07-04 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 球块 相关问题...
来源: Laya_社区 发布时间: 20240701
...面进入碰撞才有 this.capsuleCollider = new Laya.CapsuleColliderShape(0.25, 0.85); this.from = new Laya.Vector3(this.player.tran*orm.position.x, this.player.tran*orm.position.y + 1.5, this.player.tran*orm.position.z + 2); this.to = new Laya.Vector3(this.player.tran*orm.position.x, this.player.t...
来源: Laya_社区 发布时间: 20210306