Class CollisionRectangle
This is a shape that has a position and a width and a depth.
Inherited Members
Namespace: Slipe.Shared.CollisionShapes
Assembly: SlipeShared.dll
Syntax
public class CollisionRectangle : CollisionShape
Constructors
| Improve this Doc View SourceCollisionRectangle(Vector2, Vector2)
Creates a rectangular collision shape. The position marks on the south west corner of the colshape.
Declaration
public CollisionRectangle(Vector2 position, Vector2 dimensions)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | position | The bottom left position of the rectangle |
Vector2 | dimensions | The length and width |