Box2D Joint Toy
Game Physics with a 2D Physics Engine
Loading...
Searching...
No Matches
CSirIsaacNewton Class Reference

Sir Isaac Newton. More...

#include <Isaac.h>

Inheritance diagram for CSirIsaacNewton:
Collaboration diagram for CSirIsaacNewton:

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 CLevelm_pLevel = nullptr
 Pointer to current level.
 
static eLevel m_eCurLevel = eLevel::Windmill
 Current level.
 
static eDrawMode m_eDrawMode = eDrawMode::Sprites
 Draw mode.
 

Detailed Description

Sir Isaac Newton will swivel his eyes in a desired direction.

Member Function Documentation

◆ draw()

void CSirIsaacNewton::draw ( )

Draw Sir Isaac with his eyeballs drawn before his face so that everything looks right.

Here is the caller graph for this function:

◆ step()

void CSirIsaacNewton::step ( const Vector2 & v)

Set the eye offset in a particular direction.

Parameters
vLook-at point.
Here is the caller graph for this function: