diff options
author | Melanie | 2013-02-07 22:25:28 +0000 |
---|---|---|
committer | Melanie | 2013-02-07 22:25:28 +0000 |
commit | 7bf33d333af6e7393a05940d1ab436f5dce73814 (patch) | |
tree | 481c437693114ddccbb48dbe53023c183b015942 /OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs | |
parent | Send the new physics params to the viewer build dialog (diff) | |
download | opensim-SC-7bf33d333af6e7393a05940d1ab436f5dce73814.zip opensim-SC-7bf33d333af6e7393a05940d1ab436f5dce73814.tar.gz opensim-SC-7bf33d333af6e7393a05940d1ab436f5dce73814.tar.bz2 opensim-SC-7bf33d333af6e7393a05940d1ab436f5dce73814.tar.xz |
Plumb the path from the client to the extra physics params and back
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs index 3f49aba..dab727f 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs | |||
@@ -395,5 +395,25 @@ namespace OpenSim.Region.ClientStack.Linden | |||
395 | return message; | 395 | return message; |
396 | } | 396 | } |
397 | 397 | ||
398 | public static OSD partPhysicsProperties(uint localID, byte physhapetype, | ||
399 | float density, float friction, float bounce, float gravmod) | ||
400 | { | ||
401 | |||
402 | OSDMap physinfo = new OSDMap(6); | ||
403 | physinfo["LocalID"] = localID; | ||
404 | physinfo["Density"] = density; | ||
405 | physinfo["Friction"] = friction; | ||
406 | physinfo["GravityMultiplier"] = gravmod; | ||
407 | physinfo["Restitution"] = bounce; | ||
408 | physinfo["PhysicsShapeType"] = (int)physhapetype; | ||
409 | |||
410 | OSDArray array = new OSDArray(1); | ||
411 | array.Add(physinfo); | ||
412 | |||
413 | OSDMap llsdBody = new OSDMap(1); | ||
414 | llsdBody.Add("ObjectData", array); | ||
415 | |||
416 | return BuildEvent("ObjectPhysicsProperties", llsdBody); | ||
417 | } | ||
398 | } | 418 | } |
399 | } | 419 | } |