aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorUbitUmarov2014-11-19 16:59:11 +0000
committerUbitUmarov2014-11-19 16:59:11 +0000
commit7bcb68d7c496cdf2979918a12cb9dc4929bfcdc3 (patch)
treebe01104d26caabf3d6a733bfbdebea4d7cdcbb00 /OpenSim/Region/ScriptEngine
parent return bbox and offsetHeight to RezObject (diff)
downloadopensim-SC-7bcb68d7c496cdf2979918a12cb9dc4929bfcdc3.zip
opensim-SC-7bcb68d7c496cdf2979918a12cb9dc4929bfcdc3.tar.gz
opensim-SC-7bcb68d7c496cdf2979918a12cb9dc4929bfcdc3.tar.bz2
opensim-SC-7bcb68d7c496cdf2979918a12cb9dc4929bfcdc3.tar.xz
some steps to rez center or root of prim inventory object at requested
position ( does nothing diferent still )
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 5141e0e..667a562 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3234,6 +3234,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3234 3234
3235 public void llRezAtRoot(string inventory, LSL_Vector pos, LSL_Vector vel, LSL_Rotation rot, int param) 3235 public void llRezAtRoot(string inventory, LSL_Vector pos, LSL_Vector vel, LSL_Rotation rot, int param)
3236 { 3236 {
3237 doObjectRez(inventory, pos, vel, rot, param, true);
3238 }
3239
3240 public void doObjectRez(string inventory, LSL_Vector pos, LSL_Vector vel, LSL_Rotation rot, int param, bool atRoot)
3241 {
3237 m_host.AddScriptLPS(1); 3242 m_host.AddScriptLPS(1);
3238 3243
3239 Util.FireAndForget(x => 3244 Util.FireAndForget(x =>
@@ -3260,10 +3265,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3260 return; 3265 return;
3261 } 3266 }
3262 3267
3263 // need the magnitude later 3268 List<SceneObjectGroup> new_groups = World.RezObject(m_host, item, pos, rot, vel, param, atRoot);
3264 // float velmag = (float)Util.GetMagnitude(llvel);
3265
3266 List<SceneObjectGroup> new_groups = World.RezObject(m_host, item, pos, rot, vel, param);
3267 3269
3268 // If either of these are null, then there was an unknown error. 3270 // If either of these are null, then there was an unknown error.
3269 if (new_groups == null) 3271 if (new_groups == null)
@@ -3311,7 +3313,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3311 3313
3312 public void llRezObject(string inventory, LSL_Vector pos, LSL_Vector vel, LSL_Rotation rot, int param) 3314 public void llRezObject(string inventory, LSL_Vector pos, LSL_Vector vel, LSL_Rotation rot, int param)
3313 { 3315 {
3314 llRezAtRoot(inventory, pos, vel, rot, param); 3316 doObjectRez(inventory, pos, vel, rot, param, false);
3315 } 3317 }
3316 3318
3317 public void llLookAt(LSL_Vector target, double strength, double damping) 3319 public void llLookAt(LSL_Vector target, double strength, double damping)