gravity

<script src="./point_src/gravity"></script>

The gravity reactor provides 2d motion in a direction

Meta Data
filepath_exists True
path gravity
filepath gravity.js
clean_files ()

  • ClassDeclaration
    class comments:
    The reactor updates a point list, pulling all items in a direction provide a point as the directions for gravity. 0,0 for no gravity.
    • constructor

      constructor

      (
      gravityPoint , points , lockedPoints = []
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      The reactor updates a point list, pulling all items in a direction provide a point as the directions for gravity. 0,0 for no gravity.
    • method

      step

      (
      delta = 1 , lockedPoints
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      Apply gravity
    dict_keys(['kind', 'word', 'parentName', 'type', 'body', 'comments', 'pos'])