- 
        new CameraHelper(params)
- 
        
        
        摄像机帮助类 Name Type Description paramsobject optional 初始化参数 Examplestage.addChild(new Hilo3d.CameraHelper());
Extends
Members Show Inherited
| Name | Type | Default | Description | 
|---|---|---|---|
| isCameraHelper | boolean | true | |
| className | string | CameraHelper | |
| color | Color | new Color(0.3, 0.9, 0.6) | 颜色 | 
| isMesh | boolean | true | inherited | 
| geometry | Geometry | inherited | |
| material | Material | inherited | |
| useInstanced | boolean | false | inherited 是否使用 Instanced | 
| frustumTest | Boolean | true | inherited 是否开启视锥体裁剪 | 
| isDestroyed | Boolean | inherited 是否被销毁 | |
| isNode | boolean | true | inherited | 
| name | string | inherited Node 的名字,可以通过 getChildByName 查找 | |
| anim | Animation | null | inherited 动画 | 
| animationId | String | '' | inherited animation 查找 id | 
| jointName | String | '' | inherited 骨骼名称 | 
| autoUpdateWorldMatrix | boolean | true | inherited 是否自动更新世界矩阵 | 
| autoUpdateChildWorldMatrix | boolean | true | inherited 是否自动更新子元素世界矩阵 | 
| parent | Node | null | inherited 父节点 | 
| needCallChildUpdate | boolean | true | inherited 每次更新的时候是否调用子节点的 onUpdate 方法 | 
| visible | boolean | true | inherited 节点是否显示 | 
| pointerEnabled | Boolean | true | inherited 可视对象是否接受交互事件。默认为接受交互事件,即true。 | 
| pointerChildren | Boolean | true | inherited 子元素是否接受交互事件。 | 
| useHandCursor | Boolean | false | inherited 是否用鼠标指针 | 
| userData | any | null | inherited 用户数据 | 
| onUpdate | function | null | inherited update 回调 | 
| onlySyncQuaternion | Boolean | false | inherited 只同步四元数,不同步欧拉角 | 
| id | string | inherited | |
| up | Vector3 | inherited 元素的up向量 | |
| children | Array.<Node> | inherited 元素直接点数组 | |
| worldMatrix | Matrix4 | inherited 元素的世界矩阵 | |
| matrix | Matrix4Notifier | inherited 元素的矩阵 | |
| position | Vector3Notifier | inherited 位置 | |
| x | number | inherited x轴坐标 | |
| y | number | inherited y轴坐标 | |
| z | number | inherited z轴坐标 | |
| scale | Vector3Notifier | inherited 缩放 | |
| scaleX | number | inherited 缩放比例x | |
| scaleY | number | inherited 缩放比例y | |
| scaleZ | number | inherited 缩放比例z | |
| pivot | Vector3Notifier | inherited 中心点 | |
| pivotX | Number | inherited 中心点x | |
| pivotY | Number | inherited 中心点y | |
| pivotZ | Number | inherited 中心点z | |
| rotation | EulerNotifier | inherited 欧拉角 | |
| rotationX | number | inherited 旋转角度 x, 角度制 | |
| rotationY | number | inherited 旋转角度 y, 角度制 | |
| rotationZ | number | inherited 旋转角度 z, 角度制 | |
| quaternion | Quaternion | inherited 四元数角度 | |
| matrixVersion | Number | 0 | inherited 矩阵 version,每次改变会加一 | 
| worldMatrixVersion | Number | 0 | inherited 世界矩阵 version,每次改变会加一 | 
Methods Show Inherited
- 
        
        
        clone 当前mesh Name Type Description isChildboolean 是否子元素 Returns:Type Description Mesh 返回clone的实例 
- 
        
        
        raycast Name Type Default Description rayRay sortBoolean true optional 是否按距离排序 Returns:Type Description Array.<Vector3> | null 
- 
        inherited getRenderOption(option){Object}
- 
        
        
        获取渲染选项值 Name Type Default Description optionObject {} optional 渲染选项值 Returns:Type Description Object 渲染选项值 
- 
        
        
        销毁 Mesh 资源 Name Type Default Description rendererWebGLRenderer destroyTexturesBoolean false optional 是否销毁材质的贴图,默认不销毁 Returns:Type Description Mesh this 
- 
        inherited resetSkinedMeshRootNode()
- 
        
        
        重置子孙元素中 SkinedMesh 的根节点为当前元素 
- 
        inherited getChildrenNameMap(){Object}
- 
        
        
        将所以子孙元素放到一个对象中,对象key为元素的name,value为该元素 Returns:Type Description Object 返回获取的对象 
- 
        
        
        更新世界矩阵 Name Type Default Description forceBoolean true optional 是否强制更新 Returns:Type Description Node this 
- 
        
        
        获取当前元素相对于指定元素的矩阵 Name Type Description ancestorNode optional 相对于的元素,需要是当前元素的祖先元素,不传表示获取世界矩阵 Returns:Type Description Matrix4 返回获取的矩阵 
- 
        
        
        遍历当前元素的子孙元素 Name Type Default Description callbackNodeTraverseCallback 每个元素都会调用这个函数处理 onlyChildBoolean false optional 是否只遍历子元素 Returns:Type Description Node this 
- 
        
        
        遍历当前元素的子孙元素(广度优先) Name Type Default Description callbackNodeTraverseCallback 每个元素都会调用这个函数处理 onlyChildBoolean false optional 是否只遍历子元素 Returns:Type Description Node this 
- 
        
        
        根据函数来获取一个子孙元素(广度优先) Name Type Description fnNodeGetChildByCallback 判读函数 Returns:Type Description Node | null 返回获取到的子孙元素 
- 
        
        
        根据 name path 来获取子孙元素 Name Type Description pathArray.<String> 名字数组, e.g., getChildByNamePath(['a', 'b', 'c']) Returns:Type Description Node | null 返回获取到的子孙元素 
- 
        
        
        遍历调用子孙元素onUpdate方法 Name Type Description dtNumber Returns:Type Description Node this 
- 
        
        
        根据函数来获取一个子孙元素 Name Type Description fnNodeGetChildByCallback 判读函数 Returns:Type Description Node | null 返回获取到的子孙元素 
- 
        
        
        根据函数来获取匹配的所有子孙元素 Name Type Description fnNodeGetChildByCallback 判读函数 Returns:Type Description Array.<Node> 返回获取到的子孙元素 
- 
        
        
        获取指定name的首个子孙元素 Name Type Description namestring 元素name Returns:Type Description Node | null 获取的元素 
- 
        
        
        获取指定name的所有子孙元素 Name Type Description namestring 元素name Returns:Type Description Array.<Node> 获取的元素数组 
- 
        
        
        获取指定id的子孙元素 Name Type Description idstring 元素id Returns:Type Description Node | null 获取的元素 
- 
        
        
        获取指定类名的所有子孙元素 Name Type Description classNamestring 类名 Returns:Type Description Array.<Node> 获取的元素数组 
- 
        
        
        获取指定基类名的所有子孙元素 Name Type Description classNamestring 类名 Returns:Type Description Array.<Node> 获取的元素数组 
- 
        
        
        设置元素的缩放比例,如果只有一个参数三个轴等比缩放 Name Type Description xnumber X缩放比例 ynumber optional Y缩放比例 znumber optional Z缩放比例 Returns:Type Description Node this 
- 
        
        
        设置元素的位置 Name Type Description xnumber X方向位置 ynumber Y方向位置 znumber Z方向位置 Returns:Type Description Node this 
- 
        
        
        设置元素的旋转 Name Type Description xnumber X轴旋转角度, 角度制 ynumber Y轴旋转角度, 角度制 znumber Z轴旋转角度, 角度制 Returns:Type Description Node this 
- 
        
        
        设置中心点 Name Type Description xNumber 中心点x yNumber 中心点y zNumber 中心点z Returns:Type Description Node this