source: src/masses/Capsule.pym @ 1327:70ca5f3a2970

Revision 1327:70ca5f3a2970, 1.1 KB checked in by David Czech <davidczech510@…>, 5 years ago (diff)

Ticket #969 : * Convertered most documentation from epydoc format to ReST Sphinx

  • Some Axis VBO debugging
Line 
1# PySoy's masses.Capsule
2#
3# Copyright (C) 2006,2007,2008 PySoy Group
4#
5#  This program is free software; you can redistribute it and/or modify
6#  it under the terms of the GNU Affero General Public License as published
7#  by the Free Software Foundation, either version 3 of the License, or
8#  (at your option) any later version.
9#
10#  This program is distributed in the hope that it will be useful,
11#  but WITHOUT ANY WARRANTY; without even the implied warranty of
12#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13#  GNU Affero General Public License for more details.
14#
15#  You should have received a copy of the GNU Affero General Public License
16#  along with this program; if not, see http://www.gnu.org/licenses
17#
18# $Id: Capsule.pym 1375 2008-11-11 05:45:21Z DavidCzech $
19
20cdef class Capsule (Mass) :
21  '''PySoy Sphere
22
23     A capped-cylinder mass class.
24  '''
25
26  def Create(self,float density = 1, int direction=1, float radius=1,float length=1 ) :
27    ode.dMassSetCapsule(&self._mass,density,direction,radius,length);
28    ode.dBodySetMass(self._bodyID,&self._mass)
29
Note: See TracBrowser for help on using the repository browser.