![]() |
Box2D Joint Toy
Game Physics with a 2D Physics Engine
|
Sir Isaac Newton. More...
#include <Isaac.h>


Public Member Functions | |
| CSirIsaacNewton () | |
| Constructor. | |
| void | draw () |
| Draw. | |
| void | step (const Vector2 &) |
| Animation step. | |
Private Attributes | |
| Vector2 | m_vFacePos |
| Face position. | |
| Vector2 | m_vEyePos |
| Neutral eye position. | |
| Vector2 | m_vEyeOffset |
| Eye offset from neutral position. | |
Additional Inherited Members | |
Static Protected Attributes inherited from CCommon | |
| static b2World * | m_pPhysicsWorld = nullptr |
| Pointer to Box2D Physics World. | |
| static CBox2DRenderer * | m_pRenderer = nullptr |
| Pointer to the renderer. | |
| static CLevel * | m_pLevel = nullptr |
| Pointer to current level. | |
| static eLevel | m_eCurLevel = eLevel::Windmill |
| Current level. | |
| static eDrawMode | m_eDrawMode = eDrawMode::Sprites |
| Draw mode. | |
Sir Isaac Newton will swivel his eyes in a desired direction.
| void CSirIsaacNewton::draw | ( | ) |
Draw Sir Isaac with his eyeballs drawn before his face so that everything looks right.

| void CSirIsaacNewton::step | ( | const Vector2 & | v | ) |
Set the eye offset in a particular direction.
| v | Look-at point. |
