ivaria/bullet2.h
Go to the documentation of this file.00001 /* 00002 Copyright (C) 2011 by Liu Lu 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public 00015 License along with this library; if not, write to the Free 00016 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00019 #ifndef __IVARIA_PHYSICS_BULLET_H__ 00020 #define __IVARIA_PHYSICS_BULLET_H__ 00021 00026 #include "csutil/scf_interface.h" 00027 #include "iutil/objreg.h" 00028 #include "iengine/mesh.h" 00029 #include "iengine/engine.h" 00030 #include "imesh/genmesh.h" 00031 #include "csgeom/tri.h" 00032 #include "cstool/primitives.h" 00033 00034 namespace CS 00035 { 00036 namespace Physics 00037 { 00038 namespace Bullet2 00039 { 00040 00044 enum DebugMode 00045 { 00046 DEBUG_NOTHING = 0, 00047 DEBUG_COLLIDERS = 1, 00048 DEBUG_AABB = 2, 00049 DEBUG_JOINTS = 4 00050 }; 00051 00057 struct iSoftBody : public virtual iBase 00058 { 00059 SCF_INTERFACE (CS::Physics::Bullet2::iSoftBody, 1, 0, 0); 00060 00065 virtual void DebugDraw (iView* rView) = 0; 00066 00068 virtual void SetLinearStiff (float stiff) = 0; 00069 00071 virtual void SetAngularStiff (float stiff) = 0; 00072 00074 virtual void SetVolumeStiff (float stiff) = 0; 00075 00077 virtual void ResetCollisionFlag () = 0; 00078 00080 virtual void SetClusterCollisionRS (bool cluster) = 0; 00081 00083 virtual bool GetClusterCollisionRS () = 0; 00084 00086 virtual void SetClusterCollisionSS (bool cluster) = 0; 00087 00089 virtual bool GetClusterCollisionSS () = 0; 00090 00092 virtual void SetSRHardness (float hardness) = 0; 00093 00095 virtual void SetSKHardness (float hardness) = 0; 00096 00098 virtual void SetSSHardness (float hardness) = 0; 00099 00101 virtual void SetSRImpulse (float impulse) = 0; 00102 00104 virtual void SetSKImpulse (float impulse) = 0; 00105 00107 virtual void SetSSImpulse (float impulse) = 0; 00108 00110 virtual void SetVeloCorrectionFactor (float factor) = 0; 00111 00113 virtual void SetDamping (float damping) = 0; 00114 00116 virtual void SetDrag (float drag) = 0; 00117 00119 virtual void SetLift (float lift) = 0; 00120 00122 virtual void SetPressure (float pressure) = 0; 00123 00125 virtual void SetVolumeConversationCoefficient (float conversation) = 0; 00126 00128 virtual void SetShapeMatchThreshold (float matching) = 0; 00129 00131 virtual void SetRContactsHardness (float hardness) = 0; 00132 00134 virtual void SetKContactsHardness (float hardness) = 0; 00135 00137 virtual void SetSContactsHardness (float hardness) = 0; 00138 00140 virtual void SetAnchorsHardness (float hardness) = 0; 00141 00143 virtual void SetVeloSolverIterations (int iter) = 0; 00144 00146 virtual void SetPositionIterations (int iter) = 0; 00147 00149 virtual void SetDriftIterations (int iter) = 0; 00150 00152 virtual void SetClusterIterations (int iter) = 0; 00153 00155 virtual void SetShapeMatching (bool match) = 0; 00156 00158 virtual void SetBendingConstraint (bool bending) = 0; 00159 00161 virtual void GenerateCluster (int iter) = 0; 00162 }; 00163 00169 struct iPhysicalSector : public virtual iBase 00170 { 00171 SCF_INTERFACE (CS::Physics::Bullet2::iPhysicalSector, 1, 0, 0); 00172 00177 virtual bool SaveWorld (const char* filename) = 0; 00178 00184 virtual void DebugDraw (iView* rview) = 0; 00185 00192 virtual void SetDebugMode (DebugMode mode) = 0; 00193 00195 virtual DebugMode GetDebugMode () = 0; 00196 00202 virtual void StartProfile () = 0; 00203 00207 virtual void StopProfile () = 0; 00208 00215 virtual void DumpProfile (bool resetProfile = true) = 0; 00216 }; 00217 } 00218 } 00219 } 00220 #endif
Generated for Crystal Space 2.1 by doxygen 1.6.1
