Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

47 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Dodger

A playground for real-time pathfinding in a configurable, fully dynamic 2D world.

Features

  • Custom built JS game environment, with frame advance, path visualization, and configurable areas
  • Any-angle global planner (Theta*) on an 8-connected grid
  • Local planner implements unconstrained pure pursuit with Velocity Obstacles
  • Finite time Velocity Obstacles guarantees local short-term safety
  • Discrete sampling selects a safe velocity given a preferred input heading from pure pursuit
  • Configurable parameters: speeds, radii, global horizon, local horizon, safety margin, and replan windows (soon).

Game Loop

  • Build the set of blocked nodes covered by enemies
  • Run horizon-bounded Theta* to get a global path
  • Run pure pursuit on the generated path to get a preferred heading
  • Build finite VOs from all moving discs (time horizon tau)
  • If safe, proceed with that heading
  • Else, pick a safe velocity closest in angle to the preferred heading
  • Execute movement
  • Enemy positions are updated
  • Collision is checked between agent and enemies

The global layer provides guidance, while the local layer guarantees short-term safety.

Demonstration

see /demo

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages