diff options
author | Justin Clark-Casey (justincc) | 2011-07-08 19:43:22 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-07-08 19:43:22 +0100 |
commit | b18ef976ff0e8bf2bc2fd8d8002007fcaafd0ed7 (patch) | |
tree | 78a97c7866fbc99f7381be505a86c92b0e0ff0bc /OpenSim/Framework/Util.cs | |
parent | minor: code tidy up - remove a couple of Console.WriteLine() accidentally add... (diff) | |
download | opensim-SC-b18ef976ff0e8bf2bc2fd8d8002007fcaafd0ed7.zip opensim-SC-b18ef976ff0e8bf2bc2fd8d8002007fcaafd0ed7.tar.gz opensim-SC-b18ef976ff0e8bf2bc2fd8d8002007fcaafd0ed7.tar.bz2 opensim-SC-b18ef976ff0e8bf2bc2fd8d8002007fcaafd0ed7.tar.xz |
Fix interpretation of physics mesh proxies from mesh data
As per http://wiki.secondlife.com/wiki/Mesh/Mesh_Asset_Format, some submesh blocks may just have the flag "NoGeometry" to signal that they provide no mesh data.
If a block contains this, ignore it for meshing purposes rather than suffer a ClassCastException
This fixes physics proxy meshing, so you can now walk through mesh doorways, properly stand on the trailer of mesh trucks, etc.
To get mesh physics proxy, the UseMeshiesPhysicsMesh must be true in a [Mesh] config section in OpenSim.ini (example in OpenSimDefaults.ini).
Convex hull physics not currently supported.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Util.cs | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index e5ff27a..039b926 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -324,10 +324,25 @@ namespace OpenSim.Framework | |||
324 | } | 324 | } |
325 | 325 | ||
326 | /// <summary> | 326 | /// <summary> |
327 | /// Debug utility function to convert OSD into formatted XML for debugging purposes. | ||
328 | /// </summary> | ||
329 | /// <param name="osd"> | ||
330 | /// A <see cref="OSD"/> | ||
331 | /// </param> | ||
332 | /// <returns> | ||
333 | /// A <see cref="System.String"/> | ||
334 | /// </returns> | ||
335 | public static string GetFormattedXml(OSD osd) | ||
336 | { | ||
337 | return GetFormattedXml(OSDParser.SerializeLLSDXmlString(osd)); | ||
338 | } | ||
339 | |||
340 | /// <summary> | ||
327 | /// Debug utility function to convert unbroken strings of XML into something human readable for occasional debugging purposes. | 341 | /// Debug utility function to convert unbroken strings of XML into something human readable for occasional debugging purposes. |
328 | /// | ||
329 | /// Please don't delete me even if I appear currently unused! | ||
330 | /// </summary> | 342 | /// </summary> |
343 | /// <remarks> | ||
344 | /// Please don't delete me even if I appear currently unused! | ||
345 | /// </remarks> | ||
331 | /// <param name="rawXml"></param> | 346 | /// <param name="rawXml"></param> |
332 | /// <returns></returns> | 347 | /// <returns></returns> |
333 | public static string GetFormattedXml(string rawXml) | 348 | public static string GetFormattedXml(string rawXml) |