| 1 | '''Body Classes |
|---|
| 2 | |
|---|
| 3 | This is a collection of classes that exist in 3d space. Each body exists |
|---|
| 4 | within a soy.scenes.Scene. Every body has mass, velocity, and rotational velocity. |
|---|
| 5 | |
|---|
| 6 | Rendering of a Body is done by setting the .mesh property to a soy.mesh |
|---|
| 7 | object. |
|---|
| 8 | |
|---|
| 9 | Similarly, collision and other contact behaviour is governed by |
|---|
| 10 | the .shape property, which can be set to a soy.shape. |
|---|
| 11 | |
|---|
| 12 | Bodies' motions can be limited and guided by using soy.joints. |
|---|
| 13 | ''' |
|---|
| 14 | __credits__ = '''Copyright (C) 2006,2007,2008 PySoy Group |
|---|
| 15 | |
|---|
| 16 | This program is free software; you can redistribute it and/or modify |
|---|
| 17 | it under the terms of the GNU Affero General Public License as published |
|---|
| 18 | by the Free Software Foundation, either version 3 of the License, or |
|---|
| 19 | (at your option) any later version. |
|---|
| 20 | |
|---|
| 21 | This program is distributed in the hope that it will be useful, |
|---|
| 22 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 23 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 24 | GNU Affero General Public License for more details. |
|---|
| 25 | |
|---|
| 26 | You should have received a copy of the GNU Affero General Public License |
|---|
| 27 | along with this program; if not, see http://www.gnu.org/licenses |
|---|
| 28 | ''' |
|---|
| 29 | __author__ = 'PySoy Group' |
|---|
| 30 | __date__ = 'Last change on '+ \ |
|---|
| 31 | '$Date$'[7:-20]+ \ |
|---|
| 32 | 'by '+'$Author$'[9:-2] |
|---|
| 33 | __version__ = 'Trunk (r'+'$Rev$'[6:-2]+')' |
|---|
| 34 | |
|---|
| 35 | cimport gl |
|---|
| 36 | cimport py |
|---|
| 37 | cimport stdio |
|---|
| 38 | cimport soy.colors |
|---|