Sample#

Sample(Vector3, out Vector2, float)#

Sample flow data.

Only call once per frame.

Declaration#

public bool Sample(Vector3 position, out Vector2 flow, float minimumLength = 0)

Parameters#

position

World space position to sample.

flow

Filled with resulting flow.

minimumLength

The smallest length scale you are interested in. If you are sampling data for boat physics, pass in the boats width. Larger objects will ignore smaller details in the data.

Return#

Whether the query was successful.