Will also add Erin Catto's local implicit version from the GDC 2015 tutorial Added demo for btGeneric6DofSpring2Constraint, thanks to Gabor Puhr Add gfxBridge.autogenerateGraphicsObjects method for Bullet 2 demos in new framework (need to implement all Bullet 2 collision shape types...) Use 1,1,1 for local scaling in btStaticPlaneShape
20 lines
481 B
C
20 lines
481 B
C
#ifndef GENERIC_6DOF_SPRING2_CONSTRAINT_DEMO_H
|
|
#define GENERIC_6DOF_SPRING2_CONSTRAINT_DEMO_H
|
|
|
|
#include "Bullet3AppSupport/CommonRigidBodySetup.h"
|
|
|
|
struct Dof6Spring2Setup : public CommonRigidBodySetup
|
|
{
|
|
struct Dof6Spring2SetupInternalData* m_data;
|
|
|
|
Dof6Spring2Setup();
|
|
virtual ~Dof6Spring2Setup();
|
|
virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge);
|
|
|
|
virtual void stepSimulation(float deltaTime);
|
|
|
|
void animate();
|
|
};
|
|
|
|
#endif //GENERIC_6DOF_SPRING2_CONSTRAINT_DEMO_H
|