llSetLinkCamera implementation
wiki: http://wiki.secondlife.com/wiki/LlSetLinkCamera mantis: http://opensimulator.org/mantis/view.php?id=6397integration
parent
5bff741544
commit
64c80aec64
|
@ -6637,6 +6637,36 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
m_host.SetCameraAtOffset(offset);
|
m_host.SetCameraAtOffset(offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void llSetLinkCamera(LSL_Integer link, LSL_Vector eye, LSL_Vector at)
|
||||||
|
{
|
||||||
|
m_host.AddScriptLPS(1);
|
||||||
|
|
||||||
|
if (link == ScriptBaseClass.LINK_SET ||
|
||||||
|
link == ScriptBaseClass.LINK_ALL_CHILDREN ||
|
||||||
|
link == ScriptBaseClass.LINK_ALL_OTHERS) return;
|
||||||
|
|
||||||
|
SceneObjectPart part = null;
|
||||||
|
|
||||||
|
switch (link)
|
||||||
|
{
|
||||||
|
case ScriptBaseClass.LINK_ROOT:
|
||||||
|
part = m_host.ParentGroup.RootPart;
|
||||||
|
break;
|
||||||
|
case ScriptBaseClass.LINK_THIS:
|
||||||
|
part = m_host;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
part = m_host.ParentGroup.GetLinkNumPart(link);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (null != part)
|
||||||
|
{
|
||||||
|
part.SetCameraEyeOffset(eye);
|
||||||
|
part.SetCameraAtOffset(at);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public LSL_String llDumpList2String(LSL_List src, string seperator)
|
public LSL_String llDumpList2String(LSL_List src, string seperator)
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
|
|
|
@ -333,6 +333,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||||
void llSetBuoyancy(double buoyancy);
|
void llSetBuoyancy(double buoyancy);
|
||||||
void llSetCameraAtOffset(LSL_Vector offset);
|
void llSetCameraAtOffset(LSL_Vector offset);
|
||||||
void llSetCameraEyeOffset(LSL_Vector offset);
|
void llSetCameraEyeOffset(LSL_Vector offset);
|
||||||
|
void llSetLinkCamera(LSL_Integer link, LSL_Vector eye, LSL_Vector at);
|
||||||
void llSetCameraParams(LSL_List rules);
|
void llSetCameraParams(LSL_List rules);
|
||||||
void llSetClickAction(int action);
|
void llSetClickAction(int action);
|
||||||
void llSetColor(LSL_Vector color, int face);
|
void llSetColor(LSL_Vector color, int face);
|
||||||
|
|
|
@ -1498,6 +1498,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||||
m_LSL_Functions.llSetCameraEyeOffset(offset);
|
m_LSL_Functions.llSetCameraEyeOffset(offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void llSetLinkCamera(LSL_Integer link, LSL_Vector eye, LSL_Vector at)
|
||||||
|
{
|
||||||
|
m_LSL_Functions.llSetLinkCamera(link, eye, at);
|
||||||
|
}
|
||||||
|
|
||||||
public void llSetCameraParams(LSL_List rules)
|
public void llSetCameraParams(LSL_List rules)
|
||||||
{
|
{
|
||||||
m_LSL_Functions.llSetCameraParams(rules);
|
m_LSL_Functions.llSetCameraParams(rules);
|
||||||
|
|
Loading…
Reference in New Issue