plazadelmar Posted December 7, 2020 Share Posted December 7, 2020 I would like to use sin, cos, or tan to create infinite animation looking like 8. Does someone know how to set it up in expressions or VOP or vex? Quote Link to comment Share on other sites More sharing options...
Librarian Posted December 7, 2020 Share Posted December 7, 2020 (edited) @plazadelmar https://mathcurve.com/courbes2d.gb/gerono/gerono.shtml https://gamedev.stackexchange.com/questions/43691/how-can-i-move-an-object-in-an-infinity-or-figure-8-trajectory Have Fun Top/detail int prim = addprim(0,"polyline"); float u; int npt = chi("npt"); for (int i;i<npt;i++){ u = 6.28*float(i)/(npt-1); vector pos = set(cos(@Time+u),sin(@Time+u), sin((u+@Time)*2)); addvertex(0,prim,addpoint(0,pos)); } Infi.hiplc Edited March 13, 2021 by Librarian 4 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.