LlSetLinkCamera
| 首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials | 
| 函数名 | 
|---|
| Function: llSetLinkCamera( integer link, vector eye, vector at ); | 
| 参数:• integer link – Link number (0: unlinked, 1: root prim, >1: child prims and seated avatars) or a LINK_* flag • vector eye – 相对于prim位置的偏移量,用局部坐标表示 • vector at – 相对于prim位置的偏移量,用局部坐标表示 | 
| 返回值:设置相机的眼睛偏移量和相机正在观察的偏移量,为坐在链接的prim上的化身。 | 
| 注意事项 | 
|---|
| link需要是一个实际的链接号,或者是一个等同于单个prim的链接常量,比如LINK_ROOT和LINK_THIS。 LINK_SET、LINK_ALL_CHILDREN和LINK_ALL_OTHERS将不能工作。 设置这个不会更新坐着的化身的摄像头,它只会影响后来坐下来的化身。相机的设置必须提前准备好。 at和eye的偏移量是相对于prim的局部偏移量,如果您希望它相对于坐姿化身(它可能有自定义的坐姿旋转和偏移量)或区域,您必须自己进行计算。 由此函数设置的相机位置和焦点是一个Prim属性。它会在剧本中存活下来,它会在prim taking and prim rezzing 中存活下来 | 
| 示例 | 
|---|
| Complex Examples • [[Capture Camera View]] | 
| 相关函数 | 
|---|
| llGetLinkNumber - 返回脚本所在的prim的链接号。 | 
| 相关事件 | 
|---|
附录:(表格)
| Flag | Description | |
|---|---|---|
| LINK_ROOT | 1 | 指多prim链接集合[1]中的根prim | 
| LINK_THIS | -4 | refers to the prim the script is in | 
