Obi  6.4
Unified particle physics for Unity
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Obi.ObiRopeSection Class Reference
Inheritance diagram for Obi.ObiRopeSection:

Public Member Functions

void OnEnable ()
 
void CirclePreset (int segments)
 

Static Public Member Functions

static int SnapTo (float val, int snapInterval, int threshold)
 

Public Attributes

List< Vector2 > vertices
 
int snapX = 0
 
int snapY = 0
 

Properties

int Segments [get]
 

Member Function Documentation

static int Obi.ObiRopeSection.SnapTo ( float  val,
int  snapInterval,
int  threshold 
)
static

Snaps a float value to the nearest multiple of snapInterval.


The documentation for this class was generated from the following file: