OxMFunc Class

This is the base class for all "time-slice function" classes. These classes have one main method (CalcValue) that returns a value based on a finite or cyclical curve for a specific moment in time. This may not seem too exciting at first glance but these turn out to be useful in a myriad of situations; object and texture animation, color/alpha modulation, or even audio attenuation.

OxMBounds itself can be considered a null function - it always returns a value of zero. The various subclasses return values based on their type, but all have the exact the same interface and are designed to be completely interchangeable. The Function Plotter.rbp example project included in the download archive interactively plots function curves and serves as a visual and conceptual aid to help understand how the properties affect each function type.

Tip: You can invert a function curve by setting Maximum to a smaller value than Minimum. For waveform functions the same effect can be achieved by using a negative Speed. This is really only useful for non-symmetrical functions such as OxMFuncWaveSaw - symmetrical waveforms will look the same inverted or not.

Tip: Functions are useful on their own but combining the results of multiple functions can produce very complex or even seemingly random procedural animations with very little work. Experiment!

Constructors

Expand All | Collapse All

Properties

Expand All | Collapse All

Methods

Expand All | Collapse All