![]() |
Box2D Joint Toy
Ian Parberry's "Introduction to Game Physics"
|
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... | |
Code for the pulley class CPulley.
| 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.
| p | Pointer to a b2Body. |
| a | An angle in radians. |