A physics helper class. More...
Static Public Member Functions | |
| static Vec2 | cpv2point (const cpVect &vec) |
| Make cpVect type convert to Vec2 type. More... | |
| var | cpv2point ( var vec) |
| Make cpVect type convert to Vec2 type. More... | |
| local | cpv2point ( local vec) |
| Make cpVect type convert to Vec2 type. More... | |
| static cpVect | point2cpv (const Vec2 &point) |
| Make Vec2 type convert to cpVect type. More... | |
| static Size | cpv2size (const cpVect &vec) |
| Make cpVect type convert to Size type. More... | |
| var | cpv2size ( var vec) |
| Make cpVect type convert to Size type. More... | |
| local | cpv2size ( local vec) |
| Make cpVect type convert to Size type. More... | |
| static cpVect | size2cpv (const Size &size) |
| Make Size type convert to cpVect type. More... | |
| local | size2cpv ( local size) |
| Make Size type convert to cpVect type. More... | |
| static float | cpfloat2float (cpFloat f) |
| Make cpFloat type convert to float type. More... | |
| local | cpfloat2float ( local f) |
| Make cpFloat type convert to float type. More... | |
| static cpBB | rect2cpbb (const Rect &rect) |
| Make Rect type convert to cpBB type. More... | |
| var | rect2cpbb ( var rect) |
| Make Rect type convert to cpBB type. More... | |
| local | rect2cpbb ( local rect) |
| Make Rect type convert to cpBB type. More... | |
| static Rect | cpbb2rect (const cpBB &bb) |
| Make cpBB type convert to Rect type. More... | |
| var | cpbb2rect ( var bb) |
| Make cpBB type convert to Rect type. More... | |
| local | cpbb2rect ( local bb) |
| Make cpBB type convert to Rect type. More... | |
| static Vec2 * | cpvs2points (const cpVect *cpvs, Vec2 *out, int count) |
| Make cpVect array convert to Vec2 array. More... | |
| local | cpvs2points ( local cpvs, local out, local count) |
| Make cpVect array convert to Vec2 array. More... | |
| static cpVect * | points2cpvs (const Vec2 *points, cpVect *out, int count) |
| Make Vec2 array convert to cpVect array. More... | |
| local | points2cpvs ( local points, local out, local count) |
| Make Vec2 array convert to cpVect array. More... | |
A physics helper class.
Support for conversion between the chipmunk types and cocos types, eg: cpVect to Vec2, cpVect to Size, cpFloat to float.
|
inlinestatic |
Make cpVect type convert to Vec2 type.
|
inlinestatic |
Make cpVect type convert to Vec2 type.
|
inlinestatic |
Make Vec2 type convert to cpVect type.
|
inlinestatic |
Make Vec2 type convert to cpVect type.
|
inlinestatic |
Make cpVect type convert to Size type.
|
inlinestatic |
Make cpVect type convert to Size type.
|
inlinestatic |
Make cpVect type convert to Size type.
|
inlinestatic |
Make Size type convert to cpVect type.
|
inlinestatic |
Make Size type convert to cpVect type.
|
inlinestatic |
Make Size type convert to cpVect type.
|
inlinestatic |
Make cpFloat type convert to float type.
|
inlinestatic |
Make cpFloat type convert to float type.
|
inlinestatic |
Make cpFloat type convert to float type.
|
inlinestatic |
Make Rect type convert to cpBB type.
|
inlinestatic |
Make Rect type convert to cpBB type.
|
inlinestatic |
Make cpBB type convert to Rect type.
|
inlinestatic |
Make cpBB type convert to Rect type.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |