AR_Engine_SDK
|
Functions | |
function IX2DShape | GetType () end |
function IX2DCircleShape | SetRadius (fRadius) end |
function IX2DCircleShape | GetRadius () end |
function IX2DEdgeShape | Set (v1, v2) end |
function IX2DEdgeShape | Get (v1, v2) end |
function IX2DEdgeShape | Get () end |
function IX2DPolygonShape | Set (points, nCnt) end |
function IX2DPolygonShape | SetAsBox (hx, hy) end |
function IX2DPolygonShape | SetAsBox (hx, hy, vCenter, fAngle) end |
function X2DShapeFactory | CreateShape (eType) end |
function X2DShapeFactory | DestoryShape (pShape) end |
Variables | |
IX2DShape = {} | |
IX2DShape | X_CIRCLE = 0 |
IX2DShape | X_EDGE = 0 |
IX2DShape | X_POLYGON = 0 |
IX2DShape | X_NUM = 0 |
function X2DShapeFactory CreateShape | ( | eType | ) |
function X2DShapeFactory DestoryShape | ( | pShape | ) |
function IX2DEdgeShape Get | ( | v1 | , |
v2 | |||
) |
获取形状
v1 | XVECTOR2 一端的顶点位置 |
v2 | XVECTOR2 |
function IX2DEdgeShape Get | ( | ) |
IX2DEdgeShape_Get01
function IX2DCircleShape GetRadius | ( | ) |
获取圆形半径
function IX2DShape GetType | ( | ) |
获取形状类型,并返回
function IX2DEdgeShape Set | ( | v1 | , |
v2 | |||
) |
设置形状
v1 | XVECTOR2 一端的顶点位置 |
v2 | XVECTOR2 |
function IX2DPolygonShape Set | ( | points | , |
nCnt | |||
) |
设置形状
points | XVECTOR2 |
nCnt | number |
function IX2DPolygonShape SetAsBox | ( | hx | , |
hy | |||
) |
设置为Box形状
hx | number box的一半的宽 |
hy | number box的一半的高 |
function IX2DPolygonShape SetAsBox | ( | hx | , |
hy | , | ||
vCenter | , | ||
fAngle | |||
) |
设置为Box形状
hx | number box的一半的宽 |
hy | number box的一半的高 |
vCenter | XVECTOR2 box的中心点 |
fAngle | number box的旋转角度 |
function IX2DCircleShape SetRadius | ( | fRadius | ) |
设置圆形半径
fRadius | number 圆形半径 |
IX2DShape = {} |
IX2DShape X_CIRCLE = 0 |
IX2DShape X_EDGE = 0 |
IX2DShape X_NUM = 0 |
IX2DShape X_POLYGON = 0 |