Convex polygon. The vertices must be in CCW order for a right-handed
coordinate system with the z-axis coming out of the screen.
b2PolygonDef
|
|
|
__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
|
|
|
|
|
|
|
|
|
SetAsBox(...)
SetAsBox(float32 hx, float32 hy)
b2PolygonDef_SetAsBox(b2PolygonDef self, float32 hx, float32 hy, b2Vec2 center,
float32 angle) |
source code
|
|
|
getVertex(...)
b2PolygonDef_getVertex(b2PolygonDef self, uint16 vnum) -> b2Vec2 |
source code
|
|
|
setVertex(...)
setVertex(uint16 vnum, b2Vec2 value)
b2PolygonDef_setVertex(b2PolygonDef 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
b2PolygonDef_vertexCount_get(b2PolygonDef self) -> int32
|
|
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
|