Section.Section C# (CSharp) Method

Section() public method

public Section ( int id, Type type, Vector3 sectionStartCoord, Vector3 sectionEndCoord, float velocReducer, float s_upToHere, float s_inSection ) : System
id int
type Type
sectionStartCoord Vector3
sectionEndCoord Vector3
velocReducer float
s_upToHere float
s_inSection float
return System
    public Section(int id, Type type, Vector3 sectionStartCoord, Vector3 sectionEndCoord, float velocReducer, float s_upToHere, float s_inSection)
    {
        this.id = id;
        this.type = type;
        this.sectionStartCoord = sectionStartCoord;
        this.sectionEndCoord = sectionEndCoord;
        this.velocReducer = velocReducer;
        if (velocReducer > 1)
            Debug.LogError ("Velocities higher than v_max in waypoints will look weird, stay between 0 and 1");
        this.s_upToHere = s_upToHere;
        this.s_inSection = s_inSection;
    }