'''Body Classes This is a collection of classes that exist in 3d space. Each body exists within a soy.scenes.Scene. Every body has mass, velocity, and rotational velocity. Rendering of a Body is done by setting the .mesh property to a soy.mesh object. Similarly, collision and other contact behaviour is governed by the .shape property, which can be set to a soy.shape. Bodies' motions can be limited and guided by using soy.joints. ''' __credits__ = '''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 Affero 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 Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program; if not, see http://www.gnu.org/licenses ''' __author__ = 'PySoy Group' __date__ = 'Last change on '+ \ '$Date$'[7:-20]+ \ 'by '+'$Author$'[9:-2] __version__ = 'Trunk (r'+'$Rev$'[6:-2]+')' cimport gl cimport py cimport stdio cimport soy.colors