![]() |
Box2D Cannon Game With Stars
Game Physics with a 2D Physics Engine
|
Code for the cannon class CCannon.
#include "SageComponentIncludes.h"#include "Cannon.h"#include "ObjectManager.h"#include "Box2DRenderer.h"
Functions | |
| void | ArtWorldToPhysicsWorld (b2Vec2 p[], size_t n, const Vector2 &delta) |
| Art world to Physics World. | |
| void ArtWorldToPhysicsWorld | ( | b2Vec2 | p[], |
| size_t | n, | ||
| const Vector2 & | delta ) |
Convert Art World coordinates to Physics World coordinates.
| p | [in, out] A Vector of Physics World points. |
| n | Number of points. |
| delta | Translation in Render World coordinates. |

