This structure is used to build edge shapes.
b2EdgeChainDef
|
|
|
__getstate__(self,
additional_ignore=[ ] )
Returns a dictionary representation of self, with
dict(var=value [, ...]) |
source code
|
|
|
__setstate__(self,
dict)
Takes each variable=value pair in the dictionary and sets the
attributes based on them |
source code
|
|
|
|
|
|
|
|
|
|
|
setVertices(self,
vertices)
Sets all of the vertices given a tuple in the format ( (x1,y1),
(x2,y2) ... |
source code
|
|
|
|
|
|
|
|
|
_cleanUp(...)
b2EdgeChainDef__cleanUp(b2EdgeChainDef self) |
source code
|
|
|
_allocateVertices(...)
b2EdgeChainDef__allocateVertices(b2EdgeChainDef self, uint16 _count) |
source code
|
|
|
getVertex(...)
b2EdgeChainDef_getVertex(b2EdgeChainDef self, uint16 vnum) ->
b2Vec2 |
source code
|
|
|
setVertex(...)
setVertex(uint16 vnum, b2Vec2 value)
b2EdgeChainDef_setVertex(b2EdgeChainDef self, uint16 vnum, float32 x,
float32 y) |
source code
|
|
|
ClearUserData(...)
b2ShapeDef_ClearUserData(b2ShapeDef self) |
source code
|
|
|
GetUserData(...)
b2ShapeDef_GetUserData(b2ShapeDef self) -> PyObject |
source code
|
|
|
SetUserData(...)
b2ShapeDef_SetUserData(b2ShapeDef self, PyObject data) |
source code
|
|
|
thisown
The membership flag
|
|
vertexCount
b2EdgeChainDef_vertexCount_get(b2EdgeChainDef self) -> int32
|
|
isALoop
b2EdgeChainDef_isALoop_get(b2EdgeChainDef self) -> bool
|
|
vertices
Returns all of the vertices as a list of tuples [ (x1,y1), (x2,y2)
...
|
|
density
b2ShapeDef_density_get(b2ShapeDef self) -> float32
|
|
filter
b2ShapeDef_filter_get(b2ShapeDef self) -> b2FilterData
|
|
friction
b2ShapeDef_friction_get(b2ShapeDef self) -> float32
|
|
isSensor
b2ShapeDef_isSensor_get(b2ShapeDef self) -> bool
|
|
restitution
b2ShapeDef_restitution_get(b2ShapeDef self) -> float32
|
|
type
b2ShapeDef_type_get(b2ShapeDef self) -> b2ShapeType
|
|
userData
GetUserData(self) -> PyObject
|