Author: AkkaradechSujanil
Date: 2008-04-01 23:29:58 -0400 (Tue, 01 Apr 2008)
New Revision: 1214

Added:
   trunk/pysoy/src/masses/Sphere.pxi
Log:


Added: trunk/pysoy/src/masses/Sphere.pxi
===================================================================
--- trunk/pysoy/src/masses/Sphere.pxi                           (rev 0)
+++ trunk/pysoy/src/masses/Sphere.pxi   2008-04-02 03:29:58 UTC (rev 1214)
@@ -0,0 +1,28 @@
+# PySoy's soy.shapes.Sphere class
+#
+# Copyright (C) 2006,2007,2008 PySoy Group
+#
+#  This program is free software; you can redistribute it and/or modify
+#  it under the terms of the GNU General Public License as published by
+#  the Free Software Foundation; either version 3 of the License, or
+#  (at your option) any later version.
+#
+#  This program is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#  GNU General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License
+#  along with this program; if not, see http://www.gnu.org/licenses
+
+cdef class Sphere (Mass) :
+  '''PySoy Sphere
+
+     A spherical shape class.
+  '''
+
+  def Create(self,float density = 1 , float radius=1 ) :
+    ode.dMassSetSphere (&self._mass,density,radius);
+    ode.dBodySetMass(self._bodyID,&self._mass)
+    
+

_______________________________________________
PySoy-SVN mailing list
PySoy-SVN@pysoy.org
http://www.pysoy.org/mailman/listinfo/pysoy-svn

Reply via email to