void AddPos(Vector3 pos, Vector3 vel, Matrix4x4 tm, Matrix4x4 tm1, float flowscale) { MegaFlowPos fpos = new MegaFlowPos(); fpos.Set(pos, vel, tm, tm1, flowscale, flowtime); flowpositions.Add(fpos); }
void UpdateLast(Vector3 pos, Vector3 vel, Matrix4x4 tm, Matrix4x4 tm1, float flowscale) { MegaFlowPos fpos = flowpositions[flowpositions.Count - 1]; fpos.Set(pos, vel, tm, tm1, flowscale, flowtime); }