new AxSineMechanism(periodStart, periodEnd, amplitudeMin, amplitudeMax)
Creates a new sine mechanism
The sine mechanism is a non-animate mechanism that produces a result of a sine function by a given argument
Parameters:
Name | Type | Description |
---|---|---|
periodStart |
Number | The value at which the provided argument will produce the start of the sine function |
periodEnd |
Number | The value at which the provided argument will produce the end of the sine function |
amplitudeMin |
Number | The minimum value of the resulting sine function |
amplitudeMax |
Number | The peak value of the resulting sine function |
Methods
Process(deltaTime) → {Boolean}
Performs the routines of the mechanism and returns whether the mechanism should continue to be processed the next frame
Parameters:
Name | Type | Description |
---|---|---|
deltaTime |
Number | The time in milliseconds, between the previous and the current call. Used to perform time based routines |
Returns:
True, if the mechanism hasn't finished its job and should continue to be processed in the next frame
- Type
- Boolean