• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 169 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0047 秒)

161. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 31%]

... 0), false, false); //相机视角控制组件(脚本) camera.addComponent(CameraMoveScript); //添加光照 var directionLight = _scene.addChild(new Laya.DirectionLight()); //光照颜色 directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3(-3.14 / 3, 0...

来源: Laya2.0_文档 发布时间: 20210715

162. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 31%]

... 0), false, false); //相机视角控制组件(脚本) camera.addComponent(CameraMoveScript); //添加光照 var directionLight = _scene.addChild(new Laya.DirectionLight()); //光照颜色 directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3(-3.14 / 3, 0...

来源: Laya2.0_文档 发布时间: 20210715

163. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 30%]

... 0), false, false); //相机视角控制组件(脚本) camera.addComponent(CameraMoveScript); //添加光照 var directionLight:DirectionLight = _scene.addChild(new DirectionLight()) as DirectionLight; //光照颜色 directionLight.color = new Vector3(1, 1, 1); directionLight.transform.rotate(new Ve...

来源: Laya2.0_文档 发布时间: 20210715

164. 射线检测-放置物体 [ 28%]

...ser; import laya.utils.Stat; import laya.webgl.WebGLContext; import common.CameraMoveScript; public class RayPicking02 { private var ray:Ray = new Ray(new Vector3(0, 0, 0), new Vector3(0, 0, 0)); private var point:Vector2 = new Vector2(); private var _outHitInfo:RaycastHit = new RaycastHit(); privat...

来源: Laya_示例 发布时间: 20241002

165. 动画-旧版骨骼动画 [ 27%]

....Browser; import laya.utils.Handler; import laya.utils.Stat; import common.CameraMoveScript; /** * ... * @author */ public class SkinAnimation_Old { private var zombie:Sprite3D; private var changeActionButton:Button; private var curStateIndex:int = 0; private var skinAniUrl:Array = [ "../../../../re...

来源: Laya_示例 发布时间: 20241002

166. LayaAir3D 坐标系统与矩阵变换 [ 26%]

...ransform.rotate(new Vector3( -45, 0, 0), true, false); camera.addComponent(CameraMoveScript); //生成平面,其实是一个box,只不过高度很小,可看成一个平面 var plane:MeshSprite3D = scene.addChild(new MeshSprite3D(new BoxMesh(4,4,0.001))) as MeshSprite3D; var material:StandardMa...

来源: Laya_社区 发布时间: 20161223

167. 官方案例里摄像机绕物体旋转脚本的问题 [ 25%]

官方案例里摄像机绕物体旋转脚本的问题 官方案例里的CameraMoveScripts在2.0版本下有很多接口,属性不存在。比如this.camera.moveForward、 super._initialize(owner)、super._update(state)等,放在1.7版本里是有的。是不是LayaAir.d.ts有修改。现在有...

来源: Laya_社区 发布时间: 20190224

168. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 24%]

...代码为: const { regClass, property } = Laya; @regClass() export class CameraMoveScript extends Laya.Script3D { /** @private */ protected _tempVector3: Laya.Vector3 = new Laya.Vector3(); protected lastMouseX: number = 0; protected lastMouseY: number = 0; protected yawPitchRoll: Laya.Vector3 = ne...

来源: Laya3.0_文档 发布时间: 20240624

169. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 17%]

...era.transform.rotate(this._rotation, true, false); moveCamera.addComponent(CameraMoveScript); //设置鼠标弹起事件响应 Laya.stage.on(Event.MOUSE_UP, this, function (): void { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.p...

来源: Laya3.0_文档 发布时间: 20230303