大约有 370 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0063 秒)
...s/ConstraintComponent.ts:310 获取物理世界。 缺省的是从所属的scene3d取,子类可以提供另外的方法 Returns PhysicsSimulation getcurrentForce getcurrentForce(out: Vector3): void Defined in laya/d3/physics/constraints/ConstraintComponent.ts:296 获得当前力 Parameters out: Ve...
来源: Laya3.0_api 发布时间: 20231115
....viewportPointToRay(point, ray); //拿到3D场景中射线碰撞的物体 _scene3D.physicsSimulation.rayCastAll(ray,this.outs); //如果射线碰撞到物体 if (this.outs.length !== 0) { for (let i = 0; i < this.outs.length; i++){ //在射线击中的位置添加一个立方体 this.addBoxXYZ(th...
来源: Laya3.0_文档 发布时间: 20251010
...s/ConstraintComponent.ts:310 获取物理世界。 缺省的是从所属的scene3d取,子类可以提供另外的方法 Returns PhysicsSimulation getcurrentForce getcurrentForce(out: Vector3): void Inherited from ConstraintComponent.getcurrentForce Defined in laya/d3/physics/constraints/Constraint...
来源: Laya3.0_api 发布时间: 20231115
...理,其模型在场景中就不要被激活,这样就不会在场景(Scene3D)导出的时候被转换导出了。这种纹理需要采用预设(Sprite3D)分别导出,单独加载使用。 #### 2.2.2 LayaAirIDE纹理压缩功能 LayaAirIDE中依次点击 菜单 ->> 工具 ->> 纹理图...
来源: Laya2.0_文档 发布时间: 20210714
...tX: number pivotY: number Returns void addRenderObject3D addRenderObject3D(scene3D: ISubmit): void Defined in laya/resource/NativeContext.ts:898 Parameters scene3D: ISubmit Returns void add_String add_String(ab: ArrayBuffer): void Defined in laya/resource/NativeContext.ts:1086 Parameters ab: ArrayBu...
来源: Laya3.0_api 发布时间: 20231102
... 8.3 自动烘焙IBL 勾选自动烘焙IBL后,如图8-3所示,如果在Scene3D中更换了天空盒材质(Material由skybox更换为其它材质),此时Reflection Probe的IBL Tex无需手动点击烘焙按钮,保存场景后,IDE会自动进行重新烘焙。 (图8-3) 只有Reflecti...
来源: Laya3.0_文档 发布时间: 20251014
...D下鼠标事件将不会响应。如果是一个3D场景,它会传递到Scene3D中。 (图3-2) 运行项目,如动图3-3所示,当鼠标按下时执行onMouseDown,打印“onMouseDown”;松开鼠标,鼠标弹起时执行onMouseUp,打印“onMouseUp”。 (动图3-3) 3.3 键...
来源: Laya3.0_文档 发布时间: 20251010
...get is3D(): boolean Defined in laya/display/Node.ts:87 是否3D节点,即Scene3D和Sprite3D及其衍生类 Returns boolean numChildren get numChildren(): number Defined in laya/display/Node.ts:433 子对象数量。 Returns number parent get parent(): Node Defined in laya/display/Node.ts:438 父...
来源: Laya3.0_api 发布时间: 20231115
...s/ConstraintComponent.ts:310 获取物理世界。 缺省的是从所属的scene3d取,子类可以提供另外的方法 Returns PhysicsSimulation getcurrentForce getcurrentForce(out: Vector3): void Inherited from ConstraintComponent.getcurrentForce Defined in laya/d3/physics/constraints/Constraint...
来源: Laya3.0_api 发布时间: 20231115
...新的3D场景时,引擎会自动添加一个主摄像机 Main Camera 在Scene3D节点下。当然也还可以添加更多的摄像机。当我们如图2-1所示,选中主摄像机时,Scene窗口中会出现一个Camera Preview窗口,用来显示主摄像机所看到的视野,这样方便...
来源: Laya3.0_文档 发布时间: 20251010