Urho.Urho2D.CollisionEdge2D Class

2D edge collision component.

See Also: CollisionEdge2D


public class CollisionEdge2D : CollisionShape2D


Edge shapes are line segments defined by 2 vertices CollisionEdge2D.Vertex1 and CollisionEdge2D.Vertex2

They are provided to assist in making a free-form static environment for your game. A major limitation of edge shapes is that they can collide with circles and polygons but not with themselves. The collision algorithms used by Box2D require that at least one of two colliding shapes have volume. Edge shapes have no volume, so edge-edge collision is not possible.


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

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

See Also: CollisionShape2D

Public Constructors

Constructs a new instance of Urho.Urho2D.CollisionEdge2D which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.Urho2D.CollisionEdge2D, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.Urho2D.CollisionEdge2D 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.
Vertex1Vector2. Return vertex 1. Or Set vertex 1.
Vertex2Vector2. Return vertex 2. Or Set vertex 2.

Public Methods

Register object factory.
SetVertices(Vector2, Vector2)
Set vertices.