Start re-organizing demos so the physics setup can be shared easier (explicit create graphics objects, init/exit physics etc)
Add B3G_RETURN key code, only implemented in Windows so far (todo: Mac, Linux) Fix Windows key management (use WM_CHAR event instead of WM_KEYUP Add Return (OnKeyReturn) key support TreeNode, so we can select an item using the return key.
This commit is contained in:
23
Demos/CcdPhysicsDemo/CcdPhysicsSetup.h
Normal file
23
Demos/CcdPhysicsDemo/CcdPhysicsSetup.h
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
#ifndef CCD_PHYSICS_SETUP_H
|
||||
#define CCD_PHYSICS_SETUP_H
|
||||
|
||||
|
||||
#include "../CommonRigidBodySetup.h"
|
||||
|
||||
struct CcdPhysicsSetup : public CommonRigidBodySetup
|
||||
{
|
||||
virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge);
|
||||
|
||||
};
|
||||
|
||||
struct KinematicObjectSetup : public CommonRigidBodySetup
|
||||
{
|
||||
virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge);
|
||||
|
||||
virtual void stepSimulation(float deltaTime);
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif //CCD_PHYSICS_SETUP_H
|
||||
Reference in New Issue
Block a user