Urho.Urho2D.CollisionPolygon2D Class

2D polygon collision component.

See Also: CollisionPolygon2D


public class CollisionPolygon2D : CollisionShape2D


Polygon shapes are solid convex polygons. A polygon is convex when all line segments connecting two points in the interior do not cross any edge of the polygon. A polygon must have 3 or more vertices.

Polygons vertices winding doesn't matter.


Namespace: Urho.Urho2D
Assembly: Urho (in Urho.dll)
Assembly Versions:

The members of Urho.Urho2D.CollisionPolygon2D are listed below.

See Also: CollisionShape2D

Public Constructors

Constructs a new instance of Urho.Urho2D.CollisionPolygon2D which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.Urho2D.CollisionPolygon2D, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.Urho2D.CollisionPolygon2D linked to a specific Context.

Protected Constructors

Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field.

Public Properties

TypeStringHash. Urho's type system type.
TypeNameString. Urho's low-level type name.
TypeNameStaticString. Urho's low-level type name, accessible as a static method.
TypeStaticStringHash. Urho's low-level type, accessible as a static method.
VertexCountUInt32. Return vertex count. Or Set vertex count.

Public Methods

GetVertex(UInt32) : Vector2
Return vertex.
Register object factory.
SetVertex(UInt32, Vector2)
Set vertex.