Cyclone | Cyclone: C:/data/physeng_code/include/cyclone/joints.h Source File |
00001 /* 00002 * Interface file for joints between rigid bodies. 00003 * 00004 * Part of the Cyclone physics system. 00005 * 00006 * Copyright (c) Icosagon 2003. All Rights Reserved. 00007 * 00008 * This software is distributed under licence. Use of this software 00009 * implies agreement with all terms and conditions of the accompanying 00010 * software licence. 00011 */ 00012 00019 #ifndef CYCLONE_JOINTS_H 00020 #define CYCLONE_JOINTS_H 00021 00022 #include "contacts.h" 00023 00024 namespace cyclone { 00025 00027 00036 class Joint : public ContactGenerator 00037 { 00038 public: 00042 RigidBody* body[2]; 00043 00048 Vector3 position[2]; 00049 00057 real error; 00058 00062 void set( 00063 RigidBody *a, const Vector3& a_pos, 00064 RigidBody *b, const Vector3& b_pos, 00065 real error 00066 ); 00067 00072 unsigned addContact(Contact *contact, unsigned limit) const; 00073 }; 00075 00076 } // namespace cyclone 00077 00078 #endif // CYCLONE_JOINTS_H
© 2000-2003 Icosagon. All Rights Reserved.
Distributed under licence.
Cyclone Version 2.0.5 (Documentation generated Fri Nov 10 20:44:13 2006). |