Home | Trees | Indices | Help |
|
---|
|
A convex polygon.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from b2Shape | |||
---|---|---|---|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
thisown The membership flag |
|||
vertices Returns all of the vertices as a list of tuples [ (x1,y1), (x2,y2) ... |
|||
coreVertices Returns all of the core vertices as a list of tuples [ (x1,y1), (x2,y2) ... |
|||
normals Returns all of the normals as a list of tuples [ (x1,y1), (x2,y2) ... |
|||
Inherited from b2Shape | |||
---|---|---|---|
density GetDensity(self) -> float32 |
|||
filter GetFilterData(self) -> b2FilterData |
|||
friction GetFriction(self) -> float32 |
|||
isSensor IsSensor(self) -> bool |
|||
restitution GetRestitution(self) -> float32 |
|||
userData GetUserData(self) -> PyObject |
|
|
Returns a dictionary representation of self, with dict(var=value [, ...]) additional_ignore can be specified to ignore certain properties.
|
The factory output cannot be created just yet, so store the necessary information to create it later.
|
|
|
|
Returns all of the core vertices as a list of tuples [ (x1,y1), (x2,y2) ... (xN,yN) ] |
Returns all of the core vertices as a list of b2Vec2's [ (x1,y1), (x2,y2) ... (xN,yN) ] |
Returns all of the vertices as a list of tuples [ (x1,y1), (x2,y2) ... (xN,yN) ] |
Returns all of the vertices as a list of b2Vec2's [ (x1,y1), (x2,y2) ... (xN,yN) ] |
Returns all of the normals as a list of tuples [ (x1,y1), (x2,y2) ... (xN,yN) ] |
Returns all of the normals as a list of b2Vec2's [ (x1,y1), (x2,y2) ... (xN,yN) ] |
b2PolygonShape_GetOBB(b2PolygonShape self) -> b2OBB Get the oriented bounding box relative to the parent body. |
b2PolygonShape_GetCentroid(b2PolygonShape self) -> b2Vec2 Get local centroid relative to the parent body. |
b2PolygonShape_GetVertexCount(b2PolygonShape self) -> int32 Get the vertex count. |
b2PolygonShape_GetCoreVertices(b2PolygonShape self) -> b2Vec2 Get the core vertices in local coordinates. These vertices represent a smaller polygon that is used for time of impact computations. |
b2PolygonShape_GetFirstVertex(b2PolygonShape self, b2XForm xf) -> b2Vec2 Get the first vertex and apply the supplied transform. |
b2PolygonShape_Centroid(b2PolygonShape self, b2XForm xf) -> b2Vec2 Get the centroid and apply the supplied transform. |
b2PolygonShape_Support(b2PolygonShape self, b2XForm xf, b2Vec2 d) -> b2Vec2 Get the support point in the given world direction. Use the supplied transform. |
|
thisownThe membership flag |
verticesReturns all of the vertices as a list of tuples [ (x1,y1), (x2,y2) ... (xN,yN) ]
|
coreVerticesReturns all of the core vertices as a list of tuples [ (x1,y1), (x2,y2) ... (xN,yN) ]
|
normalsReturns all of the normals as a list of tuples [ (x1,y1), (x2,y2) ... (xN,yN) ]
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Feb 24 18:39:58 2009 | http://epydoc.sourceforge.net |