1 Commits

Author SHA1 Message Date
mrSkortch
4e7b4158f4 4_5 build1
-Added some definitions of static objects and model names
-added mist.getPathLength()
    given a table of points it returns the total distance between all of the points. Distance by defualt is "2d" but can be 3d. Can also return the nearest index after a given cutoff distance.
-added mist.getPathInSegments()
    sub divides a passed path into X number of segments. For example generate an on road route between 2 points, pass that table to this function and you can get the coordiantes of points relatively equidistant from each other.
-added mist.getPointAtDistanceOnPath()
    Returns a vec2 or vec3 point at a set distance along a path.
added mist.projectPoint()
      Returns a vec2 or vec 3 based on the point it was passed from that point at the angle of a given theta for a given distance.
-added mist.utils.getHeadingPoints()
   Returns the heading from the first point to the 2nd point.

modified mist.teleportToPoint to have 2 optional new variables.
-- validTerrain is a table of terrain types you wish to force the function to use
-- newGroupName is a optional value to define the new name of the group.
2020-11-01 23:19:22 -07:00