Box2D Joint Toy
Ian Parberry's "Introduction to Game Physics"
Functions
Pulley.cpp File Reference

Code for the pulley class CPulley. More...

#include "Pulley.h"
#include "GameDefines.h"
#include "ObjectManager.h"
#include "Renderer.h"
#include "ComponentIncludes.h"

Functions

void b2SetAngle (b2Body *, const float)
 Set the orientation of a b2Body. Set the angle of a b2Body using the SetTransform function, because b2Body apparently no longer has a SetAngle function. More...
 

Detailed Description

Code for the pulley class CPulley.

Function Documentation

◆ b2SetAngle()

void b2SetAngle ( b2Body *  p,
const float  a 
)

Set the orientation of a b2Body. Set the angle of a b2Body using the SetTransform function, because b2Body apparently no longer has a SetAngle function.

Parameters
pPointer to a b2Body.
aAn angle in radians.