TmxObjectExtensions extension

Extension functions on TmxObject

on
  • TmxObject

Properties

offset → Vector2
Creates an Offset based on the position of the TmxObject
no setter
rotationInRadians double
no setter
size → Vector2
no setter

Methods

createFixture({required double zoom, required Vector2 baseOffset, Map<Vector2, Vector2>? edges}) → FixtureDef?
getAlignmentOffset(ObjectAlignment objectAlignment) → Vector2
Creates an Offset to correct the alignment of the TmxObject according to the objectAlignment