Urho.Urho2D.CollisionBox2D Class

2D box collision component.

See Also: CollisionBox2D


public class CollisionBox2D : CollisionShape2D


Box shapes have an optional position offset (CollisionBox2D.Center), width and height size (CollisionBox2D.Size) and a rotation angle expressed in degrees (CollisionBox2D.Angle). 

Boxes are solid, so if you need a hollow box shape then create one from a CollisionChain2D shape.


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

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

See Also: CollisionShape2D

Public Constructors

Constructs a new instance of Urho.Urho2D.CollisionBox2D which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.Urho2D.CollisionBox2D, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.Urho2D.CollisionBox2D 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

AngleSingle. Return angle. Or Set angle.
CenterVector2. Return center. Or Set center.
SizeVector2. Return size. Or Set size.
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.

Public Methods

Register object factory.
SetCenter(Single, Single)
Set center.
SetSize(Single, Single)
Set size.