A physics helper class.
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.
| static Vec2 cpv2point |
( |
const cpVect & |
vec | ) |
|
|
inlinestatic |
Make cpVect type convert to Vec2 type.
The Object to convert. A value of type Vec2, converted from cpVect.
Make cpVect type convert to Vec2 type.
The Object to convert. A value of type Vec2, converted from cpVect.
| local cpv2point |
( |
local |
vec | ) |
|
|
inlinestatic |
Make cpVect type convert to Vec2 type.
The Object to convert. A value of type Vec2, converted from cpVect.
| static cpVect point2cpv |
( |
const Vec2 & |
point | ) |
|
|
inlinestatic |
Make Vec2 type convert to cpVect type.
The Object to convert. A value of type cpVect, converted from Vec2.
| var point2cpv |
( |
var |
point | ) |
|
|
inlinestatic |
Make Vec2 type convert to cpVect type.
The Object to convert. A value of type cpVect, converted from Vec2.
| local point2cpv |
( |
local |
point | ) |
|
|
inlinestatic |
Make Vec2 type convert to cpVect type.
The Object to convert. A value of type cpVect, converted from Vec2.
| static Size cpv2size |
( |
const cpVect & |
vec | ) |
|
|
inlinestatic |
Make cpVect type convert to Size type.
The Object to convert. A value of type Size, converted from cpVect.
Make cpVect type convert to Size type.
The Object to convert. A value of type Size, converted from cpVect.
| local cpv2size |
( |
local |
vec | ) |
|
|
inlinestatic |
Make cpVect type convert to Size type.
The Object to convert. A value of type Size, converted from cpVect.
| static cpVect size2cpv |
( |
const Size & |
size | ) |
|
|
inlinestatic |
Make Size type convert to cpVect type.
The Object to convert. A value of type cpVect, converted from Size.
Make Size type convert to cpVect type.
The Object to convert. A value of type cpVect, converted from Size.
| local size2cpv |
( |
local |
size | ) |
|
|
inlinestatic |
Make Size type convert to cpVect type.
The Object to convert. A value of type cpVect, converted from Size.
| static float cpfloat2float |
( |
cpFloat |
f | ) |
|
|
inlinestatic |
Make cpFloat type convert to float type.
The Object to convert. A value of type float, converted from cpFloat.
| var cpfloat2float |
( |
var |
f | ) |
|
|
inlinestatic |
Make cpFloat type convert to float type.
The Object to convert. A value of type float, converted from cpFloat.
| local cpfloat2float |
( |
local |
f | ) |
|
|
inlinestatic |
Make cpFloat type convert to float type.
The Object to convert. A value of type float, converted from cpFloat.
| static cpFloat float2cpfloat |
( |
float |
f | ) |
|
|
inlinestatic |
Make float type convert to cpFloat type.
The Object to convert. A value of type cpFloat, converted from float.
| var float2cpfloat |
( |
var |
f | ) |
|
|
inlinestatic |
Make float type convert to cpFloat type.
The Object to convert. A value of type cpFloat, converted from float.
| local float2cpfloat |
( |
local |
f | ) |
|
|
inlinestatic |
Make float type convert to cpFloat type.
The Object to convert. A value of type cpFloat, converted from float.
| static cpBB rect2cpbb |
( |
const Rect & |
rect | ) |
|
|
inlinestatic |
Make Rect type convert to cpBB type.
The Object to convert. A value of type cpBB, converted from Rect.
| var rect2cpbb |
( |
var |
rect | ) |
|
|
inlinestatic |
Make Rect type convert to cpBB type.
The Object to convert. A value of type cpBB, converted from Rect.
| local rect2cpbb |
( |
local |
rect | ) |
|
|
inlinestatic |
Make Rect type convert to cpBB type.
The Object to convert. A value of type cpBB, converted from Rect.
| static Rect cpbb2rect |
( |
const cpBB & |
bb | ) |
|
|
inlinestatic |
Make cpBB type convert to Rect type.
The Object to convert. A value of type Rect, converted from cpBB.
Make cpBB type convert to Rect type.
The Object to convert. A value of type Rect, converted from cpBB.
| local cpbb2rect |
( |
local |
bb | ) |
|
|
inlinestatic |
Make cpBB type convert to Rect type.
The Object to convert. A value of type Rect, converted from cpBB.
| static Vec2* cpvs2points |
( |
const cpVect * |
cpvs, |
|
|
Vec2 * |
out, |
|
|
int |
count |
|
) |
| |
|
inlinestatic |
Make cpVect array convert to Vec2 array.
The be converted object, it's a cpVect array. The coverted object, it's a Vec2 array. It's cpvs array length. The out object's pointer.
| var cpvs2points |
( |
var |
cpvs, |
|
|
var |
out, |
|
|
var |
count |
|
) |
| |
|
inlinestatic |
Make cpVect array convert to Vec2 array.
The be converted object, it's a cpVect array. The coverted object, it's a Vec2 array. It's cpvs array length. The out object's pointer.
| local cpvs2points |
( |
local |
cpvs, |
|
|
local |
out, |
|
|
local |
count |
|
) |
| |
|
inlinestatic |
Make cpVect array convert to Vec2 array.
The be converted object, it's a cpVect array. The coverted object, it's a Vec2 array. It's cpvs array length. The out object's pointer.
| static cpVect* points2cpvs |
( |
const Vec2 * |
points, |
|
|
cpVect * |
out, |
|
|
int |
count |
|
) |
| |
|
inlinestatic |
Make Vec2 array convert to cpVect array.
- Parameters
-
| points | The be converted object, it's a Vec2 array. The coverted object, it's a cpVect array. It's points array length. The out object's pointer. |
| var points2cpvs |
( |
var |
points, |
|
|
var |
out, |
|
|
var |
count |
|
) |
| |
|
inlinestatic |
Make Vec2 array convert to cpVect array.
- Parameters
-
| points | The be converted object, it's a Vec2 array. The coverted object, it's a cpVect array. It's points array length. The out object's pointer. |
| local points2cpvs |
( |
local |
points, |
|
|
local |
out, |
|
|
local |
count |
|
) |
| |
|
inlinestatic |
Make Vec2 array convert to cpVect array.
- Parameters
-
| points | The be converted object, it's a Vec2 array. The coverted object, it's a cpVect array. It's points array length. The out object's pointer. |
The documentation for this class was generated from the following file: