diff options
author | Charles Krinke | 2008-08-11 21:27:31 +0000 |
---|---|---|
committer | Charles Krinke | 2008-08-11 21:27:31 +0000 |
commit | 2cee5abcacac3a8f882d0b1245e5da112c18e44b (patch) | |
tree | 5e35b63baa0fb8f15a6fc87718ecaab7bbd749da /OpenSim/Region/ScriptEngine/Shared | |
parent | Mantis#1903. Thank you kindly, CMickeyb for a patch that: (diff) | |
download | opensim-SC_OLD-2cee5abcacac3a8f882d0b1245e5da112c18e44b.zip opensim-SC_OLD-2cee5abcacac3a8f882d0b1245e5da112c18e44b.tar.gz opensim-SC_OLD-2cee5abcacac3a8f882d0b1245e5da112c18e44b.tar.bz2 opensim-SC_OLD-2cee5abcacac3a8f882d0b1245e5da112c18e44b.tar.xz |
Mantis#1921. Thank you kindly, Leaf for a patch that:
llRezObject changed to llRezAtRoot. llRezObject implemented
to call llRezAtRoot until I can figure out how to calculate
a bounding box. Partial implementation of llPushObject
(no angular impulse applied)
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index a33c78f..c2fcd1c 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -1985,7 +1985,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1985 | NotImplemented("llMakeFire"); | 1985 | NotImplemented("llMakeFire"); |
1986 | } | 1986 | } |
1987 | 1987 | ||
1988 | public void llRezObject(string inventory, LSL_Types.Vector3 pos, LSL_Types.Vector3 vel, LSL_Types.Quaternion rot, int param) | 1988 | public void llRezAtRoot(string inventory, LSL_Types.Vector3 pos, LSL_Types.Vector3 vel, LSL_Types.Quaternion rot, int param) |
1989 | { | 1989 | { |
1990 | m_host.AddScriptLPS(1); | 1990 | m_host.AddScriptLPS(1); |
1991 | //NotImplemented("llRezObject"); | 1991 | //NotImplemented("llRezObject"); |
@@ -2048,6 +2048,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2048 | llSay(0, "Could not find object " + inventory); | 2048 | llSay(0, "Could not find object " + inventory); |
2049 | } | 2049 | } |
2050 | 2050 | ||
2051 | public void llRezObject(string inventory, LSL_Types.Vector3 pos, LSL_Types.Vector3 vel, LSL_Types.Quaternion rot, int param) | ||
2052 | { | ||
2053 | // This just calls llRezAtRoot for now.... Lol. | ||
2054 | llRezAtRoot( inventory, pos, vel, rot, param ); | ||
2055 | } | ||
2056 | |||
2051 | public void llLookAt(LSL_Types.Vector3 target, double strength, double damping) | 2057 | public void llLookAt(LSL_Types.Vector3 target, double strength, double damping) |
2052 | { | 2058 | { |
2053 | m_host.AddScriptLPS(1); | 2059 | m_host.AddScriptLPS(1); |
@@ -3150,7 +3156,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3150 | public void llPushObject(string target, LSL_Types.Vector3 impulse, LSL_Types.Vector3 ang_impulse, int local) | 3156 | public void llPushObject(string target, LSL_Types.Vector3 impulse, LSL_Types.Vector3 ang_impulse, int local) |
3151 | { | 3157 | { |
3152 | m_host.AddScriptLPS(1); | 3158 | m_host.AddScriptLPS(1); |
3153 | NotImplemented("llPushObject"); | 3159 | SceneObjectPart targ = World.GetSceneObjectPart(target); |
3160 | if( targ == null ) | ||
3161 | return; | ||
3162 | targ.ApplyImpulse(new LLVector3((float)impulse.x, (float)impulse.y, (float)impulse.z), local != 0); | ||
3154 | } | 3163 | } |
3155 | 3164 | ||
3156 | public void llPassCollisions(int pass) | 3165 | public void llPassCollisions(int pass) |
@@ -6236,13 +6245,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6236 | return tokens; | 6245 | return tokens; |
6237 | } | 6246 | } |
6238 | 6247 | ||
6239 | public void llRezAtRoot(string inventory, LSL_Types.Vector3 position, LSL_Types.Vector3 velocity, | ||
6240 | LSL_Types.Quaternion rot, int param) | ||
6241 | { | ||
6242 | m_host.AddScriptLPS(1); | ||
6243 | NotImplemented("llRezAtRoot"); | ||
6244 | } | ||
6245 | |||
6246 | public LSL_Types.LSLInteger llGetObjectPermMask(int mask) | 6248 | public LSL_Types.LSLInteger llGetObjectPermMask(int mask) |
6247 | { | 6249 | { |
6248 | m_host.AddScriptLPS(1); | 6250 | m_host.AddScriptLPS(1); |