Created
December 20, 2016 12:01
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include "GameScene.h" | |
class MeshObject; | |
class CubePosColorNorm; | |
class TriggersAssignmentScene : public GameScene | |
{ | |
public: | |
TriggersAssignmentScene(); | |
~TriggersAssignmentScene(); | |
protected: | |
virtual void Initialize(GameContext* pContext); | |
virtual void Update(GameContext* pContext); | |
virtual void Draw(GameContext* pContext) {}; | |
virtual void SceneActivated(); | |
virtual void SceneDeactivated(); | |
virtual void onTrigger(PxTriggerPair *pairs, PxU32 count) override; | |
private: | |
enum InputID | |
{ | |
MOVE_LEFT, MOVE_RIGHT, MOVE_FORWARD, MOVE_BACKWARD, JUMP, | |
RESET | |
}; | |
void Reset(); | |
MeshObject* m_pSphere; | |
MeshObject* m_pSphereLeft, *m_pSphereRight; | |
CubePosColorNorm* m_pGateLeft, *m_pGateRight; | |
PxRevoluteJoint* m_pGateRightJoint, *m_pGateLeftJoint; | |
CubePosColorNorm* m_pBoxLeft, *m_pBoxRight; | |
CubePosColorNorm* m_pBoxTriggerLeftMesh, *m_pBoxTriggerRightMesh; | |
PxRigidStatic* m_pBoxTriggerLeft, *m_pBoxTriggerRight; | |
MeshObject* m_pLevelMesh; | |
TriggersAssignmentScene(const TriggersAssignmentScene& t); | |
TriggersAssignmentScene& operator=(const TriggersAssignmentScene& t); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment