Fluxsystem Unity

by sendtogil

simple Vectorfield for Unity3D

( Crawled 5 minutes ago )


This is a simple Vectorfield(aka flowfield) for Unity. alt text

It is still WIP and supports only 2D, which means only X and Z positions of the object are updated on the field. 3D Vectorfield will soon be implemented. More information about vectorfield / goal based path finding

The system consists of 3 parts:

  • Fluxsystem class is the main class that initiates & calculates the field.
  • Cell class is holding infomation of its & neighbors' location in the array.
  • flow class is for looking up vector in the cell in the field and updates object's position.