diff options
author | Johan Berntsson | 2009-01-14 07:16:03 +0000 |
---|---|---|
committer | Johan Berntsson | 2009-01-14 07:16:03 +0000 |
commit | a885d2a6ffe9d330e757469245064e5c825f3e9b (patch) | |
tree | 70e0f1d57d2fecbf1c1dde095ecc24200ab8abb9 | |
parent | Improve parsing of joint parameters for NINJA physics (Mantis #2966). (diff) | |
download | opensim-SC-a885d2a6ffe9d330e757469245064e5c825f3e9b.zip opensim-SC-a885d2a6ffe9d330e757469245064e5c825f3e9b.tar.gz opensim-SC-a885d2a6ffe9d330e757469245064e5c825f3e9b.tar.bz2 opensim-SC-a885d2a6ffe9d330e757469245064e5c825f3e9b.tar.xz |
Added a primitive shape function for spheres
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/PrimitiveBaseShape.cs | 12 |
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(); |