2 Bullet Continuous Collision Detection and Physics Library
4 Copyright (c) 2007 Starbreeze Studios
6 This software is provided 'as-is', without any express or implied warranty.
7 In no event will the authors be held liable for any damages arising from the use of this software.
8 Permission is granted to anyone to use this software for any purpose,
9 including commercial applications, and to alter it and redistribute it freely,
10 subject to the following restrictions:
12 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
13 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
14 3. This notice may not be removed or altered from any source distribution.
16 Written by: Marten Svanfeldt
19 #ifndef GENERIGJOINTDEMO_H
20 #define GENERIGJOINTDEMO_H
23 #include "Win32DemoApplication.h"
24 #define PlatformDemoApplication Win32DemoApplication
26 #include "GlutDemoApplication.h"
27 #define PlatformDemoApplication GlutDemoApplication
30 #include "LinearMath/btAlignedObjectArray.h"
33 class GenericJointDemo : public PlatformDemoApplication
36 btAlignedObjectArray<class RagDoll*> m_ragdolls;
41 void spawnRagdoll(bool random = false);
43 virtual void clientMoveAndDisplay();
45 virtual void displayCallback();
47 virtual void keyboardCallback(unsigned char key, int x, int y);