Class QuadDeformComponent

java.lang.Object
com.artemis.Component
com.artemis.PooledComponent
games.pixscape.runtime.component.QuadDeformComponent

public final class QuadDeformComponent extends com.artemis.PooledComponent
Authored sprite geometry state containing local offsets for the normal BL, BR, TR and TL corners.

The offsets are relative to the undeformed sprite corners and compose with entity rotation and signed scale. All-zero values describe the normal rectangle, so this component is optional.

Direct ECS access is SUPPORTED_EXPERT. Ordinary gameplay mutation should prefer EntityRef.quadDeform(). Expert mutation must also perform the required Runtime geometry invalidation.

  • Field Details

    • blX

      public float blX
    • blY

      public float blY
    • brX

      public float brX
    • brY

      public float brY
    • trX

      public float trX
    • trY

      public float trY
    • tlX

      public float tlX
    • tlY

      public float tlY
  • Constructor Details

    • QuadDeformComponent

      public QuadDeformComponent()
  • Method Details

    • reset

      protected void reset()
      Specified by:
      reset in class com.artemis.PooledComponent