Class BodyUserData

java.lang.Object
com.deco2800.game.physics.BodyUserData

public class BodyUserData extends Object
POJO which contains the custom data attached to each box2D entity. Avoid extending if possible, since the additional references have to be attached to every physics entity.
  • Field Details

    • entity

      public Entity entity
      The entity to which this body is attached
  • Constructor Details

    • BodyUserData

      public BodyUserData()