aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/PrimitiveBaseShape.cs
diff options
context:
space:
mode:
authorJohan Berntsson2009-01-14 07:16:03 +0000
committerJohan Berntsson2009-01-14 07:16:03 +0000
commita885d2a6ffe9d330e757469245064e5c825f3e9b (patch)
tree70e0f1d57d2fecbf1c1dde095ecc24200ab8abb9 /OpenSim/Framework/PrimitiveBaseShape.cs
parentImprove parsing of joint parameters for NINJA physics (Mantis #2966). (diff)
downloadopensim-SC_OLD-a885d2a6ffe9d330e757469245064e5c825f3e9b.zip
opensim-SC_OLD-a885d2a6ffe9d330e757469245064e5c825f3e9b.tar.gz
opensim-SC_OLD-a885d2a6ffe9d330e757469245064e5c825f3e9b.tar.bz2
opensim-SC_OLD-a885d2a6ffe9d330e757469245064e5c825f3e9b.tar.xz
Added a primitive shape function for spheres
Diffstat (limited to 'OpenSim/Framework/PrimitiveBaseShape.cs')
-rw-r--r--OpenSim/Framework/PrimitiveBaseShape.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs
index adb55aa..2dfc321 100644
--- a/OpenSim/Framework/PrimitiveBaseShape.cs
+++ b/OpenSim/Framework/PrimitiveBaseShape.cs
@@ -247,6 +247,18 @@ namespace OpenSim.Framework
247 return shape; 247 return shape;
248 } 248 }
249 249
250 public static PrimitiveBaseShape CreateSphere()
251 {
252 PrimitiveBaseShape shape = Create();
253
254 shape._pathCurve = (byte) Extrusion.Curve1;
255 shape._profileShape = ProfileShape.HalfCircle;
256 shape._pathScaleX = 100;
257 shape._pathScaleY = 100;
258
259 return shape;
260 }
261
250 public static PrimitiveBaseShape CreateCylinder() 262 public static PrimitiveBaseShape CreateCylinder()
251 { 263 {
252 PrimitiveBaseShape shape = Create(); 264 PrimitiveBaseShape shape = Create();