A modified version of the StateDetector that fires events when footsteps occur.
More...
|
new unsafe void | Update () |
|
unsafe void | Update () |
|
|
void | AddInputVal (DataOutput< float > input, float onThreshold=1, float offThreshold=0) |
| Add an input to the StateDetector. More...
|
|
List< DataOutput< float > > | inputs = new List<DataOutput<float>>() |
|
bool | on |
|
float | floatState = 0 |
|
DataOutput< float > | InputVal [get, set] |
| The object this instance gets its data from. Must be of type DataOuput. Deletes all other inputs that are currently assigned.
|
|
float | OnThreshold [get, set] |
| The OnThreshold (if only 1 input is assigned), or the OnThreshold of the first input (if multiple inputs are assigned) More...
|
|
float | OffThreshold [get, set] |
| The OffThreshold (if only 1 input is assigned), or the OffThreshold of the first input (if multiple inputs are assigned) More...
|
|
bool | off [get, set] |
|
bool | On [get] |
| The current state of the detector.
|
|
float | Val [get] |
| The current state of the detector, converted to float.
|
|
T | Val [get] |
| The current output calue.
|
|
bool | On [get] |
|
DataOutput< T > | InputVal [get, set] |
|
A modified version of the StateDetector that fires events when footsteps occur.
◆ averageStepDuration
float Accel.StepDetector.averageStepDuration |
The average step duration.
◆ elapsed
float Accel.StepDetector.elapsed |
The elapsed time since Scene start.
◆ fixedPredictionOffset
float Accel.StepDetector.fixedPredictionOffset = 0 |
The offset that is applied to predictions. Usually you want to account for audio delays etc, so negative values are usual.
◆ lastStepDuration
float Accel.StepDetector.lastStepDuration |
The duration of the last step.
◆ lastStepTimestamp
float Accel.StepDetector.lastStepTimestamp |
The time of occurence the last step.
◆ maxPredictedStepTime
float Accel.StepDetector.maxPredictedStepTime = 2 |
A step that takes longer than this value is considered a false prediction.
◆ minPredictedStepTime
float Accel.StepDetector.minPredictedStepTime = 0.1f |
A step that takes shorter than this value is considered a false prediction.
◆ numStepsForAveraging
float Accel.StepDetector.numStepsForAveraging = 1 |
The nubmer of steps taken into account to calculate the average step duration.
◆ predict
bool Accel.StepDetector.predict = true |
◆ stepCount
int Accel.StepDetector.stepCount |
The number of steps counted since Scene start.
The documentation for this class was generated from the following file:
- /Users/hannes/Desktop/MA/RunnersHigh/Assets/Scripts/RunnersHigh/Documented/Accel.cs