Urho.Urho2D.CollisionBox2D Class

2D box collision component.

See Also: CollisionBox2D

Syntax

public class CollisionBox2D : CollisionShape2D

Remarks

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.

Requirements

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

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.
[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.

Public Methods

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