Urho.Urho2D.CollisionPolygon2D Class

2D polygon collision component.

See Also: CollisionPolygon2D

Syntax

public class CollisionPolygon2D : CollisionShape2D

Remarks

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.

Requirements

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

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

[read-only]
override
TypeStringHash. Urho's type system type.
[read-only]
override
TypeNameString. Urho's low-level type name.
[read-only]
static
TypeNameStaticString. Urho's low-level type name, accessible as a static method.
[read-only]
static
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.
static
RegisterObject(Context)
Register object factory.
SetVertex(UInt32, Vector2)
Set vertex.