{-# language ScopedTypeVariables #-}

-- | Contains configuration values for all robots.

module Sorts.Robots.Configuration where


import Physics.Chipmunk as CM

import Graphics.Qt

import Base


-- * physics

-- | robot mass per (square-)pixel
robotMaterialMass :: CpFloat = 2 -- tweakValue "robotMaterialMass" -- 78

-- | physical attributes of the robots
-- (Obviously, don't change the collisionType.)
robotShapeAttributes = ShapeAttributes{
    elasticity = 0.8,
    friction = 0.4,-- tweakValue "RobotFriction",
    CM.collisionType = RobotCT
  }

-- | size of one of the robots "face tiles"
robotBodySize :: Size CpFloat = fmap fromUber $ Size 15 15
