Ctrl+K

BoxColliderComponent

Declaration

public class Strawberry.Components.Physics.BoxColliderComponent

A collider with a rectangular shape

Inherits: Strawberry.Components.Physics.ColliderComponent

Properties

Fixture override

The underlying fixture of the collider

Fixture Fixture { get }

Size

The size of the collider in pixels

Vector2 Size { get set }

Offset

The offset of the collider relative to size.

Vector2 Offset { get set }

Methods

CreateFixture protected override

void CreateFixture(Body body)

Parameters:

Name Type Description
body tainicom.Aether.Physics2D.Dynamics.Body