Camera_kernel
Ploy3D • Docs
Ploy3D / Camera_kernel
Class: Camera_kernel
相机组件内核实现。
Extends
Base_kernel
<Camera
, typeofCamera_member_index
>
Constructors
new Camera_kernel()
new Camera_kernel(
_global
):Camera_kernel
构造函数。
Parameters
• _global: Ploy3D
引擎实例。
Returns
Overrides
Miaoverse.Base_kernel<Camera, typeof Camera_member_index>.constructor
Methods
Create()
Create(
object3d
):Promise
<Camera
>
创建相机组件实例。
Parameters
• object3d: Object3D
Returns
Promise
<Camera
>
返回相机组件实例。
Get()
Get<
N
>(ptr
,key
):N
获取资源内核实例属性值。
Type Parameters
• N
Parameters
• ptr: never
资源内核实例指针。
• key: "object"
| "type"
| "id"
| "height"
| "width"
| "target"
| "next"
| "distance"
| "depth"
| "updated"
| "magic"
| "version"
| "byteSize"
| "refCount"
| "uuid"
| "writeTS"
| "readTS"
| "last"
| "vfgMat"
| "gfvMat"
| "cfvMat"
| "vfcMat"
| "cfgMat"
| "gfcMat"
| "gfwMat"
| "wfgMat"
| "uvfvMat"
| "last_uvfvMat"
| "lastcfwMat"
| "cullingMat"
| "cullingFilter"
| "pitch"
| "yaw"
| "roll"
| "fov"
| "nearZ"
| "farZ"
| "flags"
| "lastSib"
| "nextSib"
| "wPos"
| "wDir"
资源内核实现的数据结构成员名称。
Returns
N
返回对应属性值。
Inherited from
GetInstanceByID()
GetInstanceByID(
id
):Camera
根据资源实例ID获取资源实例。
Parameters
• id: number
资源实例ID。
Returns
返回资源实例。
Inherited from
GetInstanceByPtr()
GetInstanceByPtr(
ptr
):Camera
资源内核实例指针获取资源实例。
Parameters
• ptr: never
资源内核实例指针。
Returns
返回资源实例。
Inherited from
Set()
Set(
ptr
,key
,value
):void
设置资源内核实例属性值。
Parameters
• ptr: never
资源内核实例指针。
• key: "object"
| "type"
| "id"
| "height"
| "width"
| "target"
| "next"
| "distance"
| "depth"
| "updated"
| "magic"
| "version"
| "byteSize"
| "refCount"
| "uuid"
| "writeTS"
| "readTS"
| "last"
| "vfgMat"
| "gfvMat"
| "cfvMat"
| "vfcMat"
| "cfgMat"
| "gfcMat"
| "gfwMat"
| "wfgMat"
| "uvfvMat"
| "last_uvfvMat"
| "lastcfwMat"
| "cullingMat"
| "cullingFilter"
| "pitch"
| "yaw"
| "roll"
| "fov"
| "nearZ"
| "farZ"
| "flags"
| "lastSib"
| "nextSib"
| "wPos"
| "wDir"
资源内核实现的数据结构成员名称。
• value: any
属性值。
Returns
void